core: fix typo

This commit is contained in:
undefined committed 2022-04-09 19:25:15 +08:00
1 parent ec92d30f01
commit 639f89a558
1 file changed
+2 -2
+2 -2
View File
@@ -229,7 +229,7 @@ class UserRegisterWithCodeHandler extends Handler {
if (Object.keys($set).length) await user.setById(uid, $set); if (Object.keys($set).length) await user.setById(uid, $set);
this.session.viewLang = ''; this.session.viewLang = '';
this.session.uid = uid; 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' }); this.response.redirect = tdoc.redirect || this.url('home_settings', { category: 'preference' });
} }
} }
@@ -373,7 +373,7 @@ class OauthCallbackHandler extends Handler {
if (udoc) { if (udoc) {
await user.setById(udoc._id, { loginat: new Date(), loginip: this.request.ip }); await user.setById(udoc._id, { loginat: new Date(), loginip: this.request.ip });
this.session.uid = udoc._id; this.session.uid = udoc._id;
this.session.scpoe = PERM.PERM_ALL.toString(); this.session.scope = PERM.PERM_ALL.toString();
return; return;
} }
} }