增加重置密码命令

This commit is contained in:
whyour
2025-02-27 23:57:26 +08:00
parent af3e358a6a
commit bae4073a64
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -347,11 +347,12 @@ export default class UserService {
}
public async resetAuthInfo(info: Partial<AuthInfo>) {
const { retries, twoFactorActivated } = info;
const { retries, twoFactorActivated, password } = info;
const authInfo = await this.getAuthInfo();
await this.updateAuthInfo(authInfo, {
retries,
twoFactorActivated,
password,
});
}
}