From ce751cfc877efca5eba758b0b974ea251e77a0df Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 12 Aug 2019 08:05:45 -0400 Subject: [PATCH] fix unlock logic --- src/App/Pages/Accounts/LockPageViewModel.cs | 2 ++ src/iOS.Core/Controllers/LockPasswordViewController.cs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/App/Pages/Accounts/LockPageViewModel.cs b/src/App/Pages/Accounts/LockPageViewModel.cs index b11375ac5..317aee4df 100644 --- a/src/App/Pages/Accounts/LockPageViewModel.cs +++ b/src/App/Pages/Accounts/LockPageViewModel.cs @@ -287,6 +287,8 @@ namespace Bit.App.Pages private async Task DoContinueAsync() { + _lockService.PinLocked = false; + _lockService.FingerprintLocked = false; var disableFavicon = await _storageService.GetAsync(Constants.DisableFaviconKey); await _stateService.SaveAsync(Constants.DisableFaviconKey, disableFavicon.GetValueOrDefault()); _messagingService.Send("unlocked"); diff --git a/src/iOS.Core/Controllers/LockPasswordViewController.cs b/src/iOS.Core/Controllers/LockPasswordViewController.cs index e97651cb6..3bc69aab4 100644 --- a/src/iOS.Core/Controllers/LockPasswordViewController.cs +++ b/src/iOS.Core/Controllers/LockPasswordViewController.cs @@ -1,4 +1,4 @@ -using System; +using System; using UIKit; using Foundation; using Bit.iOS.Core.Views; @@ -194,6 +194,8 @@ namespace Bit.iOS.Core.Controllers private void DoContinue() { + _lockService.PinLocked = false; + _lockService.FingerprintLocked = false; MasterPasswordCell.TextField.ResignFirstResponder(); Success(); }