mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
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
@ -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…
x
Reference in New Issue
Block a user