更新索引

This commit is contained in:
undefined committed 2020-07-24 18:51:32 +08:00
1 parent 55754b2e20
commit 71ab562592
3 files changed
+9 -8

No files matched your search

+2 -2
View File
@@ -140,8 +140,8 @@ class HomeSecurityHandler extends Handler {
@param('current', Types.String)
@param('password', Types.String, isPassword)
@param('verifyPassword', Types.String)
async postChangePassword(current: string, password: string, verifyPassword: string) {
if (password !== verifyPassword) throw new VerifyPasswordError();
async postChangePassword(_: string, current: string, password: string, verify: string) {
if (password !== verify) throw new VerifyPasswordError();
this.user.checkPassword(current);
await user.setPassword(this.user._id, password);
this.back();