Browse Source

feat(two-factor-request-model) [PM-20109]: Remove hard-coded 5 limit on ID validation.

auth/proto/webauthn-limit-increase
enmande 2 days ago
parent
commit
f07fae997d
No known key found for this signature in database
  1. 2
      src/Api/Auth/Models/Request/TwoFactorRequestModels.cs

2
src/Api/Auth/Models/Request/TwoFactorRequestModels.cs

@ -273,7 +273,7 @@ public class TwoFactorWebAuthnDeleteRequestModel : SecretVerificationRequestMode @@ -273,7 +273,7 @@ public class TwoFactorWebAuthnDeleteRequestModel : SecretVerificationRequestMode
yield return validationResult;
}
if (!Id.HasValue || Id < 0 || Id > 5)
if (!Id.HasValue)
{
yield return new ValidationResult("Invalid Key Id", new string[] { nameof(Id) });
}

Loading…
Cancel
Save