mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: add user login log
This commit is contained in:
1 file changed
+1
@@ -40,6 +40,7 @@ async function successfulAuth(this: Handler, udoc: User) {
|
||||
this.session.scope = PERM.PERM_ALL.toString();
|
||||
this.session.oauthBind = null;
|
||||
this.session.recreate = true;
|
||||
await oplog.log(this, 'user.loginSuccess', { uid: udoc._id });
|
||||
}
|
||||
|
||||
class UserLoginHandler extends Handler {
|
||||
|
||||
Reference in new issue
Block a user