mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: allow set registration_redirect for domain
This commit is contained in:
1 parent
55d77bd326
commit
d0bea74645
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "3.1.40",
|
||||
"version": "3.1.41",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -162,7 +162,7 @@ export class UserRegisterHandler extends Handler {
|
||||
const t = await token.add(
|
||||
token.TYPE_REGISTRATION,
|
||||
system.get('session.unsaved_expire_seconds'),
|
||||
{ mail },
|
||||
{ mail, redirect: this.domain.registerRedirect },
|
||||
);
|
||||
if (system.get('smtp.verify') && system.get('smtp.user')) {
|
||||
const m = await this.renderHTML('user_register_mail.html', {
|
||||
@@ -223,7 +223,7 @@ class UserRegisterWithCodeHandler extends Handler {
|
||||
this.session.viewLang = '';
|
||||
this.session.uid = uid;
|
||||
this.session.scpoe = PERM.PERM_ALL.toString();
|
||||
this.response.redirect = this.url('home_settings', { category: 'preference' });
|
||||
this.response.redirect = tdoc.redirect || this.url('home_settings', { category: 'preference' });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user