diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auth/user_form.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go index f4234b04a9..3c8ebf725b 100644 --- a/modules/auth/user_form.go +++ b/modules/auth/user_form.go @@ -100,7 +100,7 @@ func (f *SignInForm) Validate(ctx *macaron.Context, errs binding.Errors) binding // UpdateProfileForm form for updating profile type UpdateProfileForm struct { - Name string `binding:"OmitEmpty;MaxSize(35)"` + Name string `binding:"Required;AlphaDashDot;MaxSize(35)"` FullName string `binding:"MaxSize(100)"` Email string `binding:"Required;Email;MaxSize(254)"` KeepEmailPrivate bool |