mirror of
https://github.com/bitwarden/server
synced 2026-01-02 00:23:40 +00:00
skip verification check on put email
This commit is contained in:
@@ -349,7 +349,7 @@ public class TwoFactorController : Controller
|
||||
[HttpPost("email")]
|
||||
public async Task<TwoFactorEmailResponseModel> PutEmail([FromBody] UpdateTwoFactorEmailRequestModel model)
|
||||
{
|
||||
var user = await CheckAsync(model, false);
|
||||
var user = await CheckAsync(model, false, false);
|
||||
model.ToUser(user);
|
||||
|
||||
if (!await _userManager.VerifyTwoFactorTokenAsync(user,
|
||||
|
||||
Reference in New Issue
Block a user