From d3c18381f955921dc2a8233a8135b9b1ade4b371 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 7 Jul 2017 09:28:50 -0400 Subject: [PATCH] 2fa prem fixes --- src/Api/Controllers/TwoFactorController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Api/Controllers/TwoFactorController.cs b/src/Api/Controllers/TwoFactorController.cs index 6fee7a8e9..1f0cdcac3 100644 --- a/src/Api/Controllers/TwoFactorController.cs +++ b/src/Api/Controllers/TwoFactorController.cs @@ -48,7 +48,7 @@ namespace Bit.Api.Controllers [HttpPost("get-authenticator")] public async Task GetAuthenticator([FromBody]TwoFactorRequestModel model) { - var user = await CheckAsync(model.MasterPasswordHash, true); + var user = await CheckAsync(model.MasterPasswordHash, false); var response = new TwoFactorAuthenticatorResponseModel(user); return response; } @@ -58,7 +58,7 @@ namespace Bit.Api.Controllers public async Task PutAuthenticator( [FromBody]UpdateTwoFactorAuthenticatorRequestModel model) { - var user = await CheckAsync(model.MasterPasswordHash, true); + var user = await CheckAsync(model.MasterPasswordHash, false); model.ToUser(user); if(!await _userManager.VerifyTwoFactorTokenAsync(user, TwoFactorProviderType.Authenticator.ToString(), model.Token))