core: fix user_lostpass_mail

This commit is contained in:
undefined committed 2021-01-16 12:46:56 +08:00
1 parent 0ae8126da6
commit 991ffa6c86
3 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -643,7 +643,7 @@ Show MOD badge: 展示 MOD 徽章
Show: 显示
Sign In: 登录
SIGN IN: 登录
Sign up mail has been sent to your email.: 注册邮件已经发送到您的电子邮箱。
Sign up mail has been sent to your email.: 注册邮件已经发送到您的垃圾箱。
Sign Up Now: 现在注册
Sign Up: 注册
Size: 大小
@@ -741,6 +741,7 @@ user_detail: 用户
user_login: 登录
user_logout: 登出
user_lostpass: 忘记密码
user_register_mail_sent: 注册邮件已发送
user_register: 注册
User-defined role: 用户定义的角色
User: 用户
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.15.20",
"version": "2.15.21",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",
+1 -1
View File
@@ -124,7 +124,7 @@ class UserLostPassHandler extends Handler {
system.get('session.unsaved_expire_seconds'),
{ uid: udoc._id },
);
const m = await this.renderHTML('user_lostpass_mail', { url: `lostpass/${tid}`, uname: udoc.uname });
const m = await this.renderHTML('user_lostpass_mail.html', { url: `lostpass/${tid}`, uname: udoc.uname });
await sendMail(mail, 'Lost Password', 'user_lostpass_mail', m);
this.response.template = 'user_lostpass_mail_sent.html';
}