mirror of
https://github.com/bitwarden/server
synced 2025-12-31 07:33:43 +00:00
Resolves Auth Warnings (#4642)
* Resolve Auth Warnings * Move Assertion * ClaimsPrincipal is actually nullable
This commit is contained in:
@@ -7,9 +7,8 @@ namespace Bit.Core.Auth.Models.Api.Request.Accounts;
|
||||
public class RegisterSendVerificationEmailRequestModel
|
||||
{
|
||||
[StringLength(50)] public string? Name { get; set; }
|
||||
[Required]
|
||||
[StrictEmailAddress]
|
||||
[StringLength(256)]
|
||||
public string Email { get; set; }
|
||||
public required string Email { get; set; }
|
||||
public bool ReceiveMarketingEmails { get; set; }
|
||||
}
|
||||
|
||||
@@ -6,12 +6,10 @@ namespace Bit.Core.Auth.Models.Api.Request.Accounts;
|
||||
|
||||
public class RegisterVerificationEmailClickedRequestModel
|
||||
{
|
||||
[Required]
|
||||
[StrictEmailAddress]
|
||||
[StringLength(256)]
|
||||
public string Email { get; set; }
|
||||
public required string Email { get; set; }
|
||||
|
||||
[Required]
|
||||
public string EmailVerificationToken { get; set; }
|
||||
public required string EmailVerificationToken { get; set; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user