1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-12-26 16:57:59 +01:00

fix for sso login when bio unlock already enabled (#1086)

This commit is contained in:
Matt Portune 2020-09-23 09:02:20 -04:00 committed by GitHub
parent 74b34661a5
commit 2ddf624f7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ namespace Bit.App.Pages
{
_pinSet = await _vaultTimeoutService.IsPinLockSetAsync();
PinLock = (_pinSet.Item1 && _vaultTimeoutService.PinProtectedKey != null) || _pinSet.Item2;
BiometricLock = await _vaultTimeoutService.IsBiometricLockSetAsync();
BiometricLock = await _vaultTimeoutService.IsBiometricLockSetAsync() && await _cryptoService.HasKeyAsync();
_email = await _userService.GetEmailAsync();
var webVault = _environmentService.GetWebVaultUrl();
if (string.IsNullOrWhiteSpace(webVault))

View File

@ -54,7 +54,7 @@ namespace Bit.Core.Services
// If we have a lock option set, we do not store the key
return;
}
await _secureStorageService.SaveAsync(Keys_Key, key.KeyB64);
await _secureStorageService.SaveAsync(Keys_Key, key?.KeyB64);
}
public async Task SetKeyHashAsync(string keyHash)