mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
将题目纳入rating计算系统
This commit is contained in:
1 parent
bf29661eaa
commit
17b38cbf4e
19 files changed
+290
-271
No files matched your search
@@ -142,7 +142,8 @@ class HomeSecurityHandler extends Handler {
|
||||
@param('verifyPassword', Types.String)
|
||||
async postChangePassword(current: string, password: string, verifyPassword: string) {
|
||||
if (password !== verifyPassword) throw new VerifyPasswordError();
|
||||
await user.changePassword(this.user._id, current, password);
|
||||
this.user.checkPassword(current);
|
||||
await user.setPassword(this.user._id, password);
|
||||
this.back();
|
||||
}
|
||||
|
||||
|
||||
@@ -50,9 +50,9 @@ class RecordListHandler extends RecordHandler {
|
||||
rdocs,
|
||||
pdict,
|
||||
udict,
|
||||
fliterPid: pid,
|
||||
fliterTid: tid,
|
||||
fliterUidOrName: uidOrName,
|
||||
filterPid: pid,
|
||||
filterTid: tid,
|
||||
filterUidOrName: uidOrName,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user