core: fix UserLostPassHandler (#96)

This commit is contained in:
无限UCW authored and GitHub committed 2021-04-18 12:45:07 +08:00
1 parent 1968f03aa0
commit c860e5ce62
1 file changed
+5 -1
+5 -1
View File
@@ -141,7 +141,11 @@ class UserLostPassHandler extends Handler {
system.get('session.unsaved_expire_seconds'),
{ 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);
this.response.template = 'user_lostpass_mail_sent.html';
}