1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-27 03:41:30 +01:00

updated authrequestId to string to allow null value from client (#2350)

This commit is contained in:
Gbubemi Smith 2022-10-19 06:37:18 -06:00 committed by GitHub
parent 07a091503c
commit f445edb315
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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)
{