From 16d6b26c63c521b1ab6c619be5f6f39588f37eca Mon Sep 17 00:00:00 2001 From: Leonardo Dias Date: Thu, 3 Jun 2021 09:16:32 -0300 Subject: [PATCH] fix: wrong password length validation when registering a new user or resetting password (#247) #244 Co-authored-by: leo2d --- API/DTOs/RegisterDto.cs | 2 +- API/DTOs/ResetPasswordDto.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/API/DTOs/RegisterDto.cs b/API/DTOs/RegisterDto.cs index bcc93954f..d04c2a03e 100644 --- a/API/DTOs/RegisterDto.cs +++ b/API/DTOs/RegisterDto.cs @@ -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; } } diff --git a/API/DTOs/ResetPasswordDto.cs b/API/DTOs/ResetPasswordDto.cs index 535d0df2f..4b3ee3580 100644 --- a/API/DTOs/ResetPasswordDto.cs +++ b/API/DTOs/ResetPasswordDto.cs @@ -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; } } } \ No newline at end of file