From 9d3cb5d4b6380f4b562e1e76d9b28ba14e935aa3 Mon Sep 17 00:00:00 2001 From: Wenkai Yin Date: Tue, 6 Jun 2017 18:05:15 +0800 Subject: [PATCH] fix #2226 --- src/ui/api/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") }