bitwarden-estensione-browser/libs/common/src/models/domain/auth-result.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
481 B
TypeScript
Raw Normal View History

import { TwoFactorProviderType } from "../../enums/twoFactorProviderType";
import { Utils } from "../../misc/utils";
2018-02-02 04:55:49 +01:00
export class AuthResult {
2022-02-22 15:39:11 +01:00
captchaSiteKey = "";
resetMasterPassword = false;
forcePasswordReset = false;
2018-02-02 04:55:49 +01:00
twoFactorProviders: Map<TwoFactorProviderType, { [key: string]: string }> = null;
get requiresCaptcha() {
return !Utils.isNullOrWhitespace(this.captchaSiteKey);
}
get requiresTwoFactor() {
return this.twoFactorProviders != null;
}
2018-02-02 04:55:49 +01:00
}