[PM-3593] Fix enable biometric on autofill when there is not MP (#2717)

This commit is contained in:
André Bispo 2023-09-07 16:30:46 +01:00 committed by GitHub
parent 355261679d
commit 9026dd10e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -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)