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:
parent
07a091503c
commit
f445edb315
@ -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);
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user