mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
Move to libs
This commit is contained in:
17
libs/common/src/models/domain/authResult.ts
Normal file
17
libs/common/src/models/domain/authResult.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { TwoFactorProviderType } from "../../enums/twoFactorProviderType";
|
||||
import { Utils } from "../../misc/utils";
|
||||
|
||||
export class AuthResult {
|
||||
captchaSiteKey = "";
|
||||
resetMasterPassword = false;
|
||||
forcePasswordReset = false;
|
||||
twoFactorProviders: Map<TwoFactorProviderType, { [key: string]: string }> = null;
|
||||
|
||||
get requiresCaptcha() {
|
||||
return !Utils.isNullOrWhitespace(this.captchaSiteKey);
|
||||
}
|
||||
|
||||
get requiresTwoFactor() {
|
||||
return this.twoFactorProviders != null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user