mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
更新索引
This commit is contained in:
1 parent
55754b2e20
commit
71ab562592
3 files changed
+9
-8
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user