mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
[Reset Password v1] Refactor ForcePasswordReset into AuthResult (#481)
This commit is contained in:
@@ -340,6 +340,7 @@ export class AuthService implements AuthServiceAbstraction {
|
||||
|
||||
const tokenResponse = response as IdentityTokenResponse;
|
||||
result.resetMasterPassword = tokenResponse.resetMasterPassword;
|
||||
result.forcePasswordReset = tokenResponse.forcePasswordReset;
|
||||
if (tokenResponse.twoFactorToken != null) {
|
||||
await this.tokenService.setTwoFactorToken(tokenResponse.twoFactorToken, email);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user