1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 16:12:49 -05:00

skip verification check on put email

This commit is contained in:
Jake Fink
2024-07-17 15:02:41 -04:00
parent bf7eccaddc
commit 2ad59f56ea

View File

@ -349,7 +349,7 @@ public class TwoFactorController : Controller
[HttpPost("email")] [HttpPost("email")]
public async Task<TwoFactorEmailResponseModel> PutEmail([FromBody] UpdateTwoFactorEmailRequestModel model) public async Task<TwoFactorEmailResponseModel> PutEmail([FromBody] UpdateTwoFactorEmailRequestModel model)
{ {
var user = await CheckAsync(model, false); var user = await CheckAsync(model, false, false);
model.ToUser(user); model.ToUser(user);
if (!await _userManager.VerifyTwoFactorTokenAsync(user, if (!await _userManager.VerifyTwoFactorTokenAsync(user,