2fa corrections

This commit is contained in:
Kyle Spearrin 2017-06-29 12:42:59 -04:00
parent ce4d828380
commit 2651afcef0
3 changed files with 3 additions and 3 deletions

View file

@ -294,7 +294,7 @@ namespace Bit.App.Pages
{ {
var nfcKey = _providers[TwoFactorProviderType.YubiKey].ContainsKey("Nfc") && var nfcKey = _providers[TwoFactorProviderType.YubiKey].ContainsKey("Nfc") &&
(bool)_providers[TwoFactorProviderType.YubiKey]["Nfc"]; (bool)_providers[TwoFactorProviderType.YubiKey]["Nfc"];
if(_deviceInfoService.NfcEnabled || nfcKey) if(_deviceInfoService.NfcEnabled && nfcKey)
{ {
options.Add(AppResources.YubiKeyTitle); options.Add(AppResources.YubiKeyTitle);
} }

View file

@ -1502,7 +1502,7 @@ namespace Bit.App.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to This account has two-step login enabled, however, none of the configured two-step providers are supported on this device. Please use a supported supported device and/or add additional providers that are better supported across devices (such as an authenticator app).. /// Looks up a localized string similar to This account has two-step login enabled, however, none of the configured two-step providers are supported on this device. Please use a supported device and/or add additional providers that are better supported across devices (such as an authenticator app)..
/// </summary> /// </summary>
public static string NoTwoStepAvailable { public static string NoTwoStepAvailable {
get { get {

View file

@ -867,7 +867,7 @@
<comment>For 2FA whenever there are no available providers on this device.</comment> <comment>For 2FA whenever there are no available providers on this device.</comment>
</data> </data>
<data name="NoTwoStepAvailable" xml:space="preserve"> <data name="NoTwoStepAvailable" xml:space="preserve">
<value>This account has two-step login enabled, however, none of the configured two-step providers are supported on this device. Please use a supported supported device and/or add additional providers that are better supported across devices (such as an authenticator app).</value> <value>This account has two-step login enabled, however, none of the configured two-step providers are supported on this device. Please use a supported device and/or add additional providers that are better supported across devices (such as an authenticator app).</value>
</data> </data>
<data name="RecoveryCodeTitle" xml:space="preserve"> <data name="RecoveryCodeTitle" xml:space="preserve">
<value>Recovery Code</value> <value>Recovery Code</value>