mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: fix typo
This commit is contained in:
1 parent
ec92d30f01
commit
639f89a558
1 file changed
+2
-2
@@ -229,7 +229,7 @@ class UserRegisterWithCodeHandler extends Handler {
|
||||
if (Object.keys($set).length) await user.setById(uid, $set);
|
||||
this.session.viewLang = '';
|
||||
this.session.uid = uid;
|
||||
this.session.scpoe = PERM.PERM_ALL.toString();
|
||||
this.session.scope = PERM.PERM_ALL.toString();
|
||||
this.response.redirect = tdoc.redirect || this.url('home_settings', { category: 'preference' });
|
||||
}
|
||||
}
|
||||
@@ -373,7 +373,7 @@ class OauthCallbackHandler extends Handler {
|
||||
if (udoc) {
|
||||
await user.setById(udoc._id, { loginat: new Date(), loginip: this.request.ip });
|
||||
this.session.uid = udoc._id;
|
||||
this.session.scpoe = PERM.PERM_ALL.toString();
|
||||
this.session.scope = PERM.PERM_ALL.toString();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user