1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-29 14:43:50 +00:00

[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

View File

@@ -118,11 +118,15 @@ namespace Bit.iOS.Core.Controllers
_pinStatus == PinLockType.Persistent; _pinStatus == PinLockType.Persistent;
_biometricEnabled = await _vaultTimeoutService.IsBiometricLockSetAsync() _biometricEnabled = await _vaultTimeoutService.IsBiometricLockSetAsync()
&& await _cryptoService.HasEncryptedUserKeyAsync(); && await _biometricService.CanUseBiometricsUnlockAsync();
_biometricIntegrityValid =
await _platformUtilsService.IsBiometricIntegrityValidAsync(BiometricIntegritySourceKey);
_hasMasterPassword = await _userVerificationService.HasMasterPasswordAsync(); _hasMasterPassword = await _userVerificationService.HasMasterPasswordAsync();
_biometricUnlockOnly = !_hasMasterPassword && _biometricEnabled && !_pinEnabled; _biometricUnlockOnly = !_hasMasterPassword && _biometricEnabled && !_pinEnabled;
if (_biometricUnlockOnly)
{
await EnableBiometricsIfNeeded();
}
_biometricIntegrityValid = await _platformUtilsService.IsBiometricIntegrityValidAsync(BiometricIntegritySourceKey);
} }
if (_pinEnabled) if (_pinEnabled)