1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-24 16:49:26 +01:00

2fa provider properties

This commit is contained in:
Kyle Spearrin 2018-06-26 22:39:39 -04:00
parent 0d30c89c5a
commit 3cc759791e
2 changed files with 13 additions and 1 deletions

View File

@ -3,7 +3,7 @@ export class ListResponse<T> {
continuationToken: string;
constructor(response: any, t: new (dataResponse: any) => T) {
this.data = response.Data.map((dr) => new t(dr));
this.data = response.Data.map((dr: any) => new t(dr));
this.continuationToken = response.ContinuationToken;
}
}

View File

@ -24,36 +24,48 @@ export const TwoFactorProviders = {
name: null as string,
description: null as string,
priority: 1,
sort: 1,
premium: false,
},
[TwoFactorProviderType.Yubikey]: {
type: TwoFactorProviderType.Yubikey,
name: null as string,
description: null as string,
priority: 3,
sort: 2,
premium: true,
},
[TwoFactorProviderType.Duo]: {
type: TwoFactorProviderType.Duo,
name: 'Duo',
description: null as string,
priority: 2,
sort: 3,
premium: true,
},
[TwoFactorProviderType.OrganizationDuo]: {
type: TwoFactorProviderType.OrganizationDuo,
name: 'Duo (Organization)',
description: null as string,
priority: 10,
sort: 4,
premium: false,
},
[TwoFactorProviderType.U2f]: {
type: TwoFactorProviderType.U2f,
name: null as string,
description: null as string,
priority: 4,
sort: 5,
premium: true,
},
[TwoFactorProviderType.Email]: {
type: TwoFactorProviderType.Email,
name: null as string,
description: null as string,
priority: 0,
sort: 6,
premium: false,
},
};