1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-15 15:53:51 +00:00

[Reset Password v1] Refactor ForcePasswordReset into AuthResult (#481)

This commit is contained in:
Vincent Salucci
2021-09-17 10:53:50 -05:00
committed by GitHub
parent 5cec31f871
commit 16e998e664
6 changed files with 23 additions and 0 deletions

View File

@@ -4,5 +4,6 @@ export class AuthResult {
twoFactor: boolean = false;
captchaSiteKey: string = '';
resetMasterPassword: boolean = false;
forcePasswordReset: boolean = false;
twoFactorProviders: Map<TwoFactorProviderType, { [key: string]: string; }> = null;
}

View File

@@ -14,6 +14,7 @@ export class IdentityTokenResponse extends BaseResponse {
twoFactorToken: string;
kdf: KdfType;
kdfIterations: number;
forcePasswordReset: boolean;
constructor(response: any) {
super(response);
@@ -28,5 +29,6 @@ export class IdentityTokenResponse extends BaseResponse {
this.twoFactorToken = this.getResponseProperty('TwoFactorToken');
this.kdf = this.getResponseProperty('Kdf');
this.kdfIterations = this.getResponseProperty('KdfIterations');
this.forcePasswordReset = this.getResponseProperty('ForcePasswordReset');
}
}