1
0
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:
Steven Tang
2021-01-12 21:05:07 +11:00
parent 98b62b33c8
commit b7a1e2d795
3 changed files with 4 additions and 4 deletions

View File

@ -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 {