修复重用户名

This commit is contained in:
whyour 2025-05-11 18:59:15 +08:00
parent 8a18baa921
commit ac04478d1d

View File

@ -363,12 +363,13 @@ export default class UserService {
}
public async resetAuthInfo(info: Partial<AuthInfo>) {
const { retries, twoFactorActivated, password } = info;
const { retries, twoFactorActivated, password, username } = info;
const authInfo = await this.getAuthInfo();
await this.updateAuthInfo(authInfo, {
retries,
twoFactorActivated,
password,
username
});
}
}