diff --git a/src/App/Pages/Accounts/UpdateTempPasswordPage.xaml b/src/App/Pages/Accounts/UpdateTempPasswordPage.xaml index 3b03a22e9..d7bd93ecb 100644 --- a/src/App/Pages/Accounts/UpdateTempPasswordPage.xaml +++ b/src/App/Pages/Accounts/UpdateTempPasswordPage.xaml @@ -84,7 +84,7 @@ StyleClass="box-value" IsSpellCheckEnabled="False" IsTextPredictionEnabled="False" - IsPassword="True"/> + IsPassword="True"/> diff --git a/src/App/Pages/Accounts/UpdateTempPasswordPageViewModel.cs b/src/App/Pages/Accounts/UpdateTempPasswordPageViewModel.cs index 319cdb7e8..daf4b2dbe 100644 --- a/src/App/Pages/Accounts/UpdateTempPasswordPageViewModel.cs +++ b/src/App/Pages/Accounts/UpdateTempPasswordPageViewModel.cs @@ -15,7 +15,7 @@ namespace Bit.App.Pages public class UpdateTempPasswordPageViewModel : BaseChangePasswordViewModel { private readonly IUserVerificationService _userVerificationService; - + private ForcePasswordResetReason _reason = ForcePasswordResetReason.AdminForcePasswordReset; public UpdateTempPasswordPageViewModel() @@ -83,8 +83,7 @@ namespace Bit.App.Pages return; } - if ( - RequireCurrentPassword && + if (RequireCurrentPassword && !await _userVerificationService.VerifyUser(CurrentMasterPassword, VerificationType.MasterPassword)) { return; diff --git a/src/Core/Services/AuthService.cs b/src/Core/Services/AuthService.cs index 9b74ece17..f8eb07207 100644 --- a/src/Core/Services/AuthService.cs +++ b/src/Core/Services/AuthService.cs @@ -49,7 +49,8 @@ namespace Bit.Core.Services IVaultTimeoutService vaultTimeoutService, IKeyConnectorService keyConnectorService, IPasswordGenerationService passwordGenerationService, - IPolicyService policyService, bool setCryptoKeys = true) + IPolicyService policyService, + bool setCryptoKeys = true) { _cryptoService = cryptoService; _cryptoFunctionService = cryptoFunctionService;