core: fix user_lostpass_with_code

pull/134/head
undefined 3 years ago
parent 99ddb9c92e
commit 6542e63e5b

@ -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",

@ -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)

Loading…
Cancel
Save