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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user