core: try to fix #121

This commit is contained in:
undefined committed 2021-04-27 22:40:58 +08:00
1 parent d77d7d9ade
commit 00586b5883
8 files changed
+22 -13

No files matched your search

+1 -1
View File
@@ -123,7 +123,7 @@ class UserRegisterWithCodeHandler extends Handler {
const uid = await user.create(tdoc.mail, uname, password, undefined, this.request.ip);
await token.del(code, token.TYPE_REGISTRATION);
this.session.uid = uid;
this.session.scpoe = PERM.PERM_ALL;
this.session.scpoe = PERM.PERM_ALL.toString();
this.response.redirect = this.url('homepage');
}
}