core: fix user_lostpass_with_code

This commit is contained in:
undefined committed 2021-05-06 17:47:44 +08:00
1 parent 99ddb9c92e
commit 6542e63e5b
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.24.14",
"version": "2.24.15",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",
+1
View File
@@ -164,6 +164,7 @@ class UserLostPassWithCodeHandler extends Handler {
if (!tdoc) throw new InvalidTokenError(token.TYPE_LOSTPASS, code);
const udoc = await user.getById(domainId, tdoc.uid);
this.response.body = { uname: udoc.uname };
this.response.template = 'user_lostpass_with_code.html';
}
@param('code', Types.String)