mirror of
https://github.com/bitwarden/mobile.git
synced 2024-12-31 17:47:43 +01:00
verify fingerprint when enabling
This commit is contained in:
parent
b356627afd
commit
eecf81f0a5
@ -243,7 +243,19 @@ namespace Bit.App.Pages
|
||||
|
||||
public async Task UpdateFingerprintAsync()
|
||||
{
|
||||
_fingerprint = !_fingerprint;
|
||||
var current = _fingerprint;
|
||||
if(_fingerprint)
|
||||
{
|
||||
_fingerprint = false;
|
||||
}
|
||||
else if(await _platformUtilsService.SupportsFingerprintAsync())
|
||||
{
|
||||
_fingerprint = await _platformUtilsService.AuthenticateFingerprintAsync();
|
||||
}
|
||||
if(_fingerprint == current)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if(_fingerprint)
|
||||
{
|
||||
await _storageService.SaveAsync(Constants.FingerprintUnlockKey, true);
|
||||
|
Loading…
Reference in New Issue
Block a user