mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
Reduce minimum username length to 1
This commit is contained in:
@ -43,7 +43,7 @@ func (s *Signup) IsValid() bool {
|
||||
}
|
||||
|
||||
func validateUsername(username string) bool {
|
||||
return len(username) >= 3 && username != "current"
|
||||
return len(username) >= 1 && username != "current"
|
||||
}
|
||||
|
||||
func validatePassword(password string) bool {
|
||||
|
Reference in New Issue
Block a user