mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: use domain.host for default
This commit is contained in:
1 parent
cc0fc9e5b3
commit
90579a81ed
7 files changed
+13
-7
No files matched your search
@@ -79,7 +79,7 @@ export class UserRegisterHandler extends Handler {
|
||||
if (system.get('smtp.user')) {
|
||||
const m = await this.renderHTML('user_register_mail.html', {
|
||||
path: `register/${t[0]}`,
|
||||
url_prefix: system.get('server.url'),
|
||||
url_prefix: (this.domain.host || [])[0] || system.get('server.url'),
|
||||
});
|
||||
await sendMail(mail, 'Sign Up', 'user_register_mail', m);
|
||||
this.response.template = 'user_register_mail_sent.html';
|
||||
@@ -146,7 +146,7 @@ class UserLostPassHandler extends Handler {
|
||||
);
|
||||
const m = await this.renderHTML('user_lostpass_mail.html', {
|
||||
url: `lostpass/${tid}`,
|
||||
url_prefix: system.get('server.url'),
|
||||
url_prefix: this.domain.host || system.get('server.url'),
|
||||
uname: udoc.uname,
|
||||
});
|
||||
await sendMail(mail, 'Lost Password', 'user_lostpass_mail', m);
|
||||
|
||||
Reference in new issue
Block a user