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:
Leonardo Dias 2021-06-03 09:16:32 -03:00 committed by GitHub
parent 6c67f73898
commit 16d6b26c63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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