1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

[PM-3303] Fix biometric login after key migration (#2679)

* [PM-3303] Add condition to biometric unlock
This commit is contained in:
André Bispo
2023-08-11 15:16:01 +01:00
committed by GitHub
parent 9b5cde6a46
commit 5f4cd62f66
2 changed files with 1 additions and 2 deletions

View File

@@ -179,7 +179,6 @@ namespace Bit.App.Pages
?? await _stateService.GetPinProtectedKeyAsync();
PinEnabled = (_pinStatus == PinLockType.Transient && ephemeralPinSet != null) ||
_pinStatus == PinLockType.Persistent;
BiometricEnabled = await _vaultTimeoutService.IsBiometricLockSetAsync() && await _biometricService.CanUseBiometricsUnlockAsync();
// Users without MP and without biometric or pin has no MP to unlock with

View File

@@ -16,7 +16,7 @@ namespace Bit.App.Services
public async Task<bool> CanUseBiometricsUnlockAsync()
{
return await _cryptoService.HasEncryptedUserKeyAsync() || await _stateService.GetKeyEncryptedAsync() != null;
return await _cryptoService.GetBiometricUnlockKeyAsync() != null || await _stateService.GetKeyEncryptedAsync() != null;
}
public abstract Task<bool> IsSystemBiometricIntegrityValidAsync(string bioIntegritySrcKey = null);