mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 07:43:37 +00:00
check modal stack before popping
This commit is contained in:
@@ -119,8 +119,11 @@ namespace Bit.App.Pages
|
|||||||
if(result.Authenticated)
|
if(result.Authenticated)
|
||||||
{
|
{
|
||||||
_appSettings.Locked = false;
|
_appSettings.Locked = false;
|
||||||
|
if(Navigation.ModalStack.Count > 0)
|
||||||
|
{
|
||||||
await Navigation.PopModalAsync();
|
await Navigation.PopModalAsync();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if(result.Status == FingerprintAuthenticationResultStatus.FallbackRequested)
|
else if(result.Status == FingerprintAuthenticationResultStatus.FallbackRequested)
|
||||||
{
|
{
|
||||||
AuthService.LogOut();
|
AuthService.LogOut();
|
||||||
|
|||||||
@@ -155,8 +155,11 @@ namespace Bit.App.Pages
|
|||||||
if(key.Key.SequenceEqual(_cryptoService.Key.Key))
|
if(key.Key.SequenceEqual(_cryptoService.Key.Key))
|
||||||
{
|
{
|
||||||
_appSettingsService.Locked = false;
|
_appSettingsService.Locked = false;
|
||||||
|
if(Navigation.ModalStack.Count > 0)
|
||||||
|
{
|
||||||
await Navigation.PopModalAsync();
|
await Navigation.PopModalAsync();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// TODO: keep track of invalid attempts and logout?
|
// TODO: keep track of invalid attempts and logout?
|
||||||
|
|||||||
@@ -126,8 +126,11 @@ namespace Bit.App.Pages
|
|||||||
_appSettingsService.Locked = false;
|
_appSettingsService.Locked = false;
|
||||||
_appSettingsService.FailedPinAttempts = 0;
|
_appSettingsService.FailedPinAttempts = 0;
|
||||||
PinControl.Entry.Unfocus();
|
PinControl.Entry.Unfocus();
|
||||||
|
if(Navigation.ModalStack.Count > 0)
|
||||||
|
{
|
||||||
await Navigation.PopModalAsync();
|
await Navigation.PopModalAsync();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_appSettingsService.FailedPinAttempts++;
|
_appSettingsService.FailedPinAttempts++;
|
||||||
|
|||||||
Reference in New Issue
Block a user