mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-04 08:50:18 +01:00
[PM-3593] Fix enable biometric on autofill when there is not MP (#2717)
This commit is contained in:
parent
355261679d
commit
9026dd10e5
@ -118,11 +118,15 @@ namespace Bit.iOS.Core.Controllers
|
||||
_pinStatus == PinLockType.Persistent;
|
||||
|
||||
_biometricEnabled = await _vaultTimeoutService.IsBiometricLockSetAsync()
|
||||
&& await _cryptoService.HasEncryptedUserKeyAsync();
|
||||
_biometricIntegrityValid =
|
||||
await _platformUtilsService.IsBiometricIntegrityValidAsync(BiometricIntegritySourceKey);
|
||||
&& await _biometricService.CanUseBiometricsUnlockAsync();
|
||||
_hasMasterPassword = await _userVerificationService.HasMasterPasswordAsync();
|
||||
_biometricUnlockOnly = !_hasMasterPassword && _biometricEnabled && !_pinEnabled;
|
||||
|
||||
if (_biometricUnlockOnly)
|
||||
{
|
||||
await EnableBiometricsIfNeeded();
|
||||
}
|
||||
_biometricIntegrityValid = await _platformUtilsService.IsBiometricIntegrityValidAsync(BiometricIntegritySourceKey);
|
||||
}
|
||||
|
||||
if (_pinEnabled)
|
||||
|
Loading…
Reference in New Issue
Block a user