This commit is contained in:
Wenkai Yin 2017-06-06 18:05:15 +08:00
parent 39b4055d47
commit 9d3cb5d4b6

View File

@ -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")
}