1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

only prompt fingerprint if set

This commit is contained in:
Kyle Spearrin
2019-06-07 10:12:11 -04:00
parent 54141f77d6
commit 060e1a822f
2 changed files with 22 additions and 15 deletions

View File

@@ -250,19 +250,23 @@ namespace Bit.App.Pages
public async Task PromptFingerprintAsync()
{
if(!FingerprintLock)
{
return;
}
var success = await _platformUtilsService.AuthenticateFingerprintAsync(null,
PinLock ? AppResources.PIN : AppResources.MasterPassword, () =>
PinLock ? AppResources.PIN : AppResources.MasterPassword, () =>
{
var page = Page as LockPage;
if(PinLock)
{
var page = Page as LockPage;
if(PinLock)
{
page.PinEntry.Focus();
}
else
{
page.MasterPasswordEntry.Focus();
}
});
page.PinEntry.Focus();
}
else
{
page.MasterPasswordEntry.Focus();
}
});
_lockService.FingerprintLocked = !success;
if(success)
{