From 3cc759791e12b7692fc2d2b4be1a2b010eee1c8e Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 26 Jun 2018 22:39:39 -0400 Subject: [PATCH] 2fa provider properties --- src/models/response/listResponse.ts | 2 +- src/services/auth.service.ts | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/models/response/listResponse.ts b/src/models/response/listResponse.ts index 84c2c11632..d879e0f53f 100644 --- a/src/models/response/listResponse.ts +++ b/src/models/response/listResponse.ts @@ -3,7 +3,7 @@ export class ListResponse { 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; } } diff --git a/src/services/auth.service.ts b/src/services/auth.service.ts index 2eaaa0fe14..3c06bc6f4f 100644 --- a/src/services/auth.service.ts +++ b/src/services/auth.service.ts @@ -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, }, };