diff --git a/src/Api/Controllers/TwoFactorController.cs b/src/Api/Controllers/TwoFactorController.cs index 76daf18e4c..4ba48c9d14 100644 --- a/src/Api/Controllers/TwoFactorController.cs +++ b/src/Api/Controllers/TwoFactorController.cs @@ -293,7 +293,7 @@ public class TwoFactorController : Controller if (!string.IsNullOrEmpty(model.AuthRequestAccessCode)) { if (await _verifyAuthRequestCommand - .VerifyAuthRequestAsync(model.AuthRequestId, model.AuthRequestAccessCode)) + .VerifyAuthRequestAsync(new Guid(model.AuthRequestId), model.AuthRequestAccessCode)) { var isBecauseNewDeviceLogin = await IsNewDeviceLoginAsync(user, model); diff --git a/src/Api/Models/Request/TwoFactorRequestModels.cs b/src/Api/Models/Request/TwoFactorRequestModels.cs index 39c9ecaa88..6f34432d78 100644 --- a/src/Api/Models/Request/TwoFactorRequestModels.cs +++ b/src/Api/Models/Request/TwoFactorRequestModels.cs @@ -204,7 +204,7 @@ public class TwoFactorEmailRequestModel : SecretVerificationRequestModel public string DeviceIdentifier { get; set; } - public Guid AuthRequestId { get; set; } + public string AuthRequestId { get; set; } public User ToUser(User extistingUser) {