From 2ad59f56ea48652c83d606ac06dc9c5b2aa5d336 Mon Sep 17 00:00:00 2001 From: Jake Fink Date: Wed, 17 Jul 2024 15:02:41 -0400 Subject: [PATCH] skip verification check on put email --- src/Api/Auth/Controllers/TwoFactorController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/Auth/Controllers/TwoFactorController.cs b/src/Api/Auth/Controllers/TwoFactorController.cs index 43159c8dd1..b287b2f1d5 100644 --- a/src/Api/Auth/Controllers/TwoFactorController.cs +++ b/src/Api/Auth/Controllers/TwoFactorController.cs @@ -349,7 +349,7 @@ public class TwoFactorController : Controller [HttpPost("email")] public async Task 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,