mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: url generation bug fix
This commit is contained in:
1 parent
dbbc0c5e1d
commit
9afeae7047
4 files changed
+7
-9
No files matched your search
@@ -171,7 +171,7 @@ export class UserRegisterHandler extends Handler {
|
||||
{ mail, redirect: this.domain.registerRedirect },
|
||||
);
|
||||
const prefix = this.domain.host
|
||||
? `${this.domain.host instanceof Array ? this.domain.host[0] : this.domain.host}/`
|
||||
? `${this.domain.host instanceof Array ? this.domain.host[0] : this.domain.host}`
|
||||
: system.get('server.url');
|
||||
if (system.get('smtp.verify') && system.get('smtp.user')) {
|
||||
const m = await this.renderHTML('user_register_mail.html', {
|
||||
@@ -254,7 +254,7 @@ class UserLostPassHandler extends Handler {
|
||||
const m = await this.renderHTML('user_lostpass_mail.html', {
|
||||
url: `lostpass/${tid}`,
|
||||
url_prefix: this.domain.host
|
||||
? `${this.domain.host instanceof Array ? this.domain.host[0] : this.domain.host}/`
|
||||
? `${this.domain.host instanceof Array ? this.domain.host[0] : this.domain.host}`
|
||||
: system.get('server.url'),
|
||||
uname: udoc.uname,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user