将题目纳入rating计算系统

This commit is contained in:
undefined committed 2020-07-17 16:59:39 +08:00
1 parent bf29661eaa
commit 17b38cbf4e
19 files changed
+290 -271

No files matched your search

+2 -1
View File
@@ -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();
}
+3 -3
View File
@@ -50,9 +50,9 @@ class RecordListHandler extends RecordHandler {
rdocs,
pdict,
udict,
fliterPid: pid,
fliterTid: tid,
fliterUidOrName: uidOrName,
filterPid: pid,
filterTid: tid,
filterUidOrName: uidOrName,
};
}
}