mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix UserLostPassHandler (#96)
This commit is contained in:
1 parent
1968f03aa0
commit
c860e5ce62
1 file changed
+5
-1
@@ -141,7 +141,11 @@ class UserLostPassHandler extends Handler {
|
|||||||
system.get('session.unsaved_expire_seconds'),
|
system.get('session.unsaved_expire_seconds'),
|
||||||
{ uid: udoc._id },
|
{ uid: udoc._id },
|
||||||
);
|
);
|
||||||
const m = await this.renderHTML('user_lostpass_mail.html', { url: `lostpass/${tid}`, uname: udoc.uname });
|
const m = await this.renderHTML('user_lostpass_mail.html', {
|
||||||
|
url: `lostpass/${tid}`,
|
||||||
|
url_prefix: system.get('server.url'),
|
||||||
|
uname: udoc.uname,
|
||||||
|
});
|
||||||
await sendMail(mail, 'Lost Password', 'user_lostpass_mail', m);
|
await sendMail(mail, 'Lost Password', 'user_lostpass_mail', m);
|
||||||
this.response.template = 'user_lostpass_mail_sent.html';
|
this.response.template = 'user_lostpass_mail_sent.html';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user