mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: try to fix #121
This commit is contained in:
1 parent
d77d7d9ade
commit
00586b5883
8 files changed
+22
-13
No files matched your search
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user