From f445edb315f1310c8c8f3bc9934b585dd36936f7 Mon Sep 17 00:00:00 2001 From: Gbubemi Smith Date: Wed, 19 Oct 2022 06:37:18 -0600 Subject: [PATCH] updated authrequestId to string to allow null value from client (#2350) --- src/Api/Controllers/TwoFactorController.cs | 2 +- src/Api/Models/Request/TwoFactorRequestModels.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {