mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix user_lostpass_with_code
This commit is contained in:
1 parent
99ddb9c92e
commit
6542e63e5b
2 files changed
+2
-1
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "2.24.14",
|
"version": "2.24.15",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "dist/loader.js",
|
"main": "dist/loader.js",
|
||||||
"typings": "dist/loader.d.ts",
|
"typings": "dist/loader.d.ts",
|
||||||
|
|||||||
@@ -164,6 +164,7 @@ class UserLostPassWithCodeHandler extends Handler {
|
|||||||
if (!tdoc) throw new InvalidTokenError(token.TYPE_LOSTPASS, code);
|
if (!tdoc) throw new InvalidTokenError(token.TYPE_LOSTPASS, code);
|
||||||
const udoc = await user.getById(domainId, tdoc.uid);
|
const udoc = await user.getById(domainId, tdoc.uid);
|
||||||
this.response.body = { uname: udoc.uname };
|
this.response.body = { uname: udoc.uname };
|
||||||
|
this.response.template = 'user_lostpass_with_code.html';
|
||||||
}
|
}
|
||||||
|
|
||||||
@param('code', Types.String)
|
@param('code', Types.String)
|
||||||
|
|||||||
Reference in new issue
Block a user