From 598db5c83bd29a0e1952d09350d223af7ec4604d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 3 Apr 2018 16:16:48 -0400 Subject: [PATCH] add organization duo 2fa type --- src/Console/Program.cs | 5 +++-- src/Core/Enums/TwoFactorProviderType.cs | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Console/Program.cs b/src/Console/Program.cs index dfa08fab..32e7e010 100644 --- a/src/Console/Program.cs +++ b/src/Console/Program.cs @@ -214,6 +214,7 @@ namespace Bit.Console { Con.WriteLine("{0}. {1}{2}", i + 1, result.TwoFactorProviders.ElementAt(i).Key, result.TwoFactorProviders.ElementAt(i).Key == TwoFactorProviderType.Duo || + result.TwoFactorProviders.ElementAt(i).Key == TwoFactorProviderType.OrganizationDuo || result.TwoFactorProviders.ElementAt(i).Key == TwoFactorProviderType.U2f ? " - not supported" : string.Empty); } @@ -260,8 +261,8 @@ namespace Bit.Console } else { - Con.WriteLine("The selected two-step login method is not supported on this platform/application. " + - "Use a different two step-login method."); + Con.WriteLine("The selected two-step login method is not supported on this " + + "platform/application. Use a different two step-login method."); readingTokenInput = false; } diff --git a/src/Core/Enums/TwoFactorProviderType.cs b/src/Core/Enums/TwoFactorProviderType.cs index 28be1b2c..1a1b7ffc 100644 --- a/src/Core/Enums/TwoFactorProviderType.cs +++ b/src/Core/Enums/TwoFactorProviderType.cs @@ -7,6 +7,7 @@ Duo = 2, YubiKey = 3, U2f = 4, - Remember = 5 + Remember = 5, + OrganizationDuo = 6 } }