From 1c006d6218e970d95ee06d653153af112b65e60c Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Fri, 19 Nov 2021 05:01:44 +1000 Subject: [PATCH] Hide Master Pass On Restart for Key Connector (#1650) --- .../Settings/SettingsPage/SettingsPageViewModel.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/App/Pages/Settings/SettingsPage/SettingsPageViewModel.cs b/src/App/Pages/Settings/SettingsPage/SettingsPageViewModel.cs index 3738c7742..a81d0a703 100644 --- a/src/App/Pages/Settings/SettingsPage/SettingsPageViewModel.cs +++ b/src/App/Pages/Settings/SettingsPage/SettingsPageViewModel.cs @@ -319,9 +319,13 @@ namespace Bit.App.Pages AppResources.SetPINDescription, null, AppResources.Submit, AppResources.Cancel, true); if (!string.IsNullOrWhiteSpace(pin)) { - var masterPassOnRestart = await _platformUtilsService.ShowDialogAsync( - AppResources.PINRequireMasterPasswordRestart, AppResources.UnlockWithPIN, - AppResources.Yes, AppResources.No); + var masterPassOnRestart = false; + if (!await _keyConnectorService.GetUsesKeyConnector()) + { + masterPassOnRestart = await _platformUtilsService.ShowDialogAsync( + AppResources.PINRequireMasterPasswordRestart, AppResources.UnlockWithPIN, + AppResources.Yes, AppResources.No); + } var kdf = await _userService.GetKdfAsync(); var kdfIterations = await _userService.GetKdfIterationsAsync();