add
This commit is contained in:
@@ -75,12 +75,12 @@ func (s *Service) Login(account, password string) (string, error) {
|
||||
|
||||
func validAccount(a string) bool {
|
||||
n := len(a)
|
||||
return n >= 3 && n <= 100
|
||||
return n >= 3 && n <= 20
|
||||
}
|
||||
|
||||
func validPassword(p string) bool {
|
||||
n := len(p)
|
||||
return n >= 8 && n <= 128
|
||||
return n >= 8 && n <= 20
|
||||
}
|
||||
|
||||
func isUniqueViolation(err error) bool {
|
||||
|
||||
Reference in New Issue
Block a user