mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
fix #2226
This commit is contained in:
parent
39b4055d47
commit
9d3cb5d4b6
@ -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")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user