mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 07:35:52 +03:00
allow non-nfc keys on android
This commit is contained in:
parent
72d1421f1d
commit
377029226e
1 changed files with 2 additions and 2 deletions
|
@ -359,7 +359,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 || Device.RuntimePlatform == Device.UWP)
|
if((_deviceInfoService.NfcEnabled && nfcKey) || Device.RuntimePlatform != Device.iOS)
|
||||||
{
|
{
|
||||||
options.Add(AppResources.YubiKeyTitle);
|
options.Add(AppResources.YubiKeyTitle);
|
||||||
}
|
}
|
||||||
|
@ -511,7 +511,7 @@ namespace Bit.App.Pages
|
||||||
}
|
}
|
||||||
|
|
||||||
var nfcKey = p.Value.ContainsKey("Nfc") && (bool)p.Value["Nfc"];
|
var nfcKey = p.Value.ContainsKey("Nfc") && (bool)p.Value["Nfc"];
|
||||||
if((!_deviceInfoService.NfcEnabled || !nfcKey) && Device.RuntimePlatform != Device.UWP)
|
if((!_deviceInfoService.NfcEnabled || !nfcKey) && Device.RuntimePlatform == Device.iOS)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue