mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-29 12:55:21 +01:00
added 2fa support for org duo
This commit is contained in:
parent
bdbb01317d
commit
bea9e06506
@ -5,4 +5,5 @@ export enum TwoFactorProviderType {
|
|||||||
Yubikey = 3,
|
Yubikey = 3,
|
||||||
U2f = 4,
|
U2f = 4,
|
||||||
Remember = 5,
|
Remember = 5,
|
||||||
|
OrganizationDuo = 6,
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,12 @@ export const TwoFactorProviders = {
|
|||||||
description: null as string,
|
description: null as string,
|
||||||
priority: 0,
|
priority: 0,
|
||||||
},
|
},
|
||||||
|
[TwoFactorProviderType.OrganizationDuo]: {
|
||||||
|
type: TwoFactorProviderType.OrganizationDuo,
|
||||||
|
name: 'Duo (Organization)',
|
||||||
|
description: null as string,
|
||||||
|
priority: 10,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export class AuthService {
|
export class AuthService {
|
||||||
@ -76,6 +82,11 @@ export class AuthService {
|
|||||||
|
|
||||||
TwoFactorProviders[TwoFactorProviderType.Duo].description = this.i18nService.t('duoDesc');
|
TwoFactorProviders[TwoFactorProviderType.Duo].description = this.i18nService.t('duoDesc');
|
||||||
|
|
||||||
|
TwoFactorProviders[TwoFactorProviderType.OrganizationDuo].name =
|
||||||
|
'Duo (' + this.i18nService.t('organization') + ')';
|
||||||
|
TwoFactorProviders[TwoFactorProviderType.OrganizationDuo].description =
|
||||||
|
this.i18nService.t('duoOrganizationDesc');
|
||||||
|
|
||||||
TwoFactorProviders[TwoFactorProviderType.U2f].name = this.i18nService.t('u2fTitle');
|
TwoFactorProviders[TwoFactorProviderType.U2f].name = this.i18nService.t('u2fTitle');
|
||||||
TwoFactorProviders[TwoFactorProviderType.U2f].description = this.i18nService.t('u2fDesc');
|
TwoFactorProviders[TwoFactorProviderType.U2f].description = this.i18nService.t('u2fDesc');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user