diff --git a/src/ui/api/user.go b/src/ui/api/user.go index ec18a3cf6..7ffc94f3a 100644 --- a/src/ui/api/user.go +++ b/src/ui/api/user.go @@ -352,7 +352,7 @@ func commonValidate(user models.User) error { return fmt.Errorf("Email can't be empty") } - if isIllegalLength(user.Realname, 0, 20) { + if isIllegalLength(user.Realname, 1, 20) { return fmt.Errorf("realname with illegal length") }