diff --git a/src/App/Pages/Accounts/LoginApproveDeviceViewModel.cs b/src/App/Pages/Accounts/LoginApproveDeviceViewModel.cs index dc1843256..240226fe6 100644 --- a/src/App/Pages/Accounts/LoginApproveDeviceViewModel.cs +++ b/src/App/Pages/Accounts/LoginApproveDeviceViewModel.cs @@ -111,7 +111,7 @@ namespace Bit.App.Pages { try { - Email = await _stateService.GetRememberedEmailAsync(); + Email = await _stateService.GetActiveUserEmailAsync(); var decryptOptions = await _stateService.GetAccountDecryptionOptions(); RequestAdminApprovalEnabled = decryptOptions?.TrustedDeviceOption?.HasAdminApproval ?? false; ApproveWithMasterPasswordEnabled = decryptOptions?.HasMasterPassword ?? false; diff --git a/src/App/Pages/Accounts/LoginSsoPageViewModel.cs b/src/App/Pages/Accounts/LoginSsoPageViewModel.cs index 60b5dbd91..ad474820c 100644 --- a/src/App/Pages/Accounts/LoginSsoPageViewModel.cs +++ b/src/App/Pages/Accounts/LoginSsoPageViewModel.cs @@ -149,7 +149,6 @@ namespace Bit.App.Pages authResult = await WebAuthenticator.AuthenticateAsync(new Uri(url), new Uri(REDIRECT_URI)); - var code = GetResultCode(authResult, state); if (!string.IsNullOrEmpty(code)) {