1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-13 14:53:18 +00:00

support for per-user biometric state tracking (#1820)

This commit is contained in:
Matt Portune
2022-03-01 14:04:17 -05:00
committed by GitHub
parent 2076c11cbd
commit 34d0ecf64b
9 changed files with 43 additions and 26 deletions

View File

@@ -314,7 +314,7 @@ namespace Bit.iOS.Core.Controllers
var success = await _platformUtilsService.AuthenticateBiometricAsync(null,
_pinLock ? AppResources.PIN : AppResources.MasterPassword,
() => MasterPasswordCell.TextField.BecomeFirstResponder());
_stateService.BiometricLocked = !success;
await _stateService.SetBiometricLockedAsync(!success);
if (success)
{
DoContinue();
@@ -356,7 +356,7 @@ namespace Bit.iOS.Core.Controllers
await _stateService.SetPasswordVerifiedAutofillAsync(true);
}
await EnableBiometricsIfNeeded();
_stateService.BiometricLocked = false;
await _stateService.SetBiometricLockedAsync(false);
MasterPasswordCell.TextField.ResignFirstResponder();
Success();
}