core: add user login log

This commit is contained in:
undefined committed 2026-03-17 04:30:47 +08:00
1 parent 9632abd86c
commit 6d871bd15b
1 file changed
+1
+1
View File
@@ -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 {