mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
verify fingerprint when enabling
This commit is contained in:
parent
b356627afd
commit
eecf81f0a5
1 changed files with 13 additions and 1 deletions
|
@ -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 a new issue