fix: wrong password length validation when registering a new user or resetting password (#247)
#244 Co-authored-by: leo2d <contato.leonardod@yahoo.com>
This commit is contained in:
parent
6c67f73898
commit
16d6b26c63
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ namespace API.DTOs
|
|||
[Required]
|
||||
public string Username { get; init; }
|
||||
[Required]
|
||||
[StringLength(32, MinimumLength = 4)]
|
||||
[StringLength(32, MinimumLength = 6)]
|
||||
public string Password { get; init; }
|
||||
public bool IsAdmin { get; init; }
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace API.DTOs
|
|||
[Required]
|
||||
public string UserName { get; init; }
|
||||
[Required]
|
||||
[StringLength(16, MinimumLength = 4)]
|
||||
[StringLength(32, MinimumLength = 6)]
|
||||
public string Password { get; init; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue