diff options
author | Unknwon <u@gogs.io> | 2015-09-06 10:08:14 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-06 10:08:14 -0400 |
commit | 80701d45bbe333f1bdef4673fae43df131b2222f (patch) | |
tree | 5aea48f87ac43997e3d9b60dacc2eb05877a408d /modules | |
parent | aa67de910af6246a6dc9ad96c56f789e282e8403 (diff) | |
download | gitea-80701d45bbe333f1bdef4673fae43df131b2222f.tar.gz gitea-80701d45bbe333f1bdef4673fae43df131b2222f.zip |
#1193 Make organization emails non-mandatory
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auth/org.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/auth/org.go b/modules/auth/org.go index 0dfab951e4..e6a5ba7872 100644 --- a/modules/auth/org.go +++ b/modules/auth/org.go @@ -17,8 +17,7 @@ import ( // \/ /_____/ \/ \/ \/ \/ \/ type CreateOrgForm struct { - OrgName string `form:"org_name" binding:"Required;AlphaDashDot;MaxSize(30)"` - Email string `form:"email" binding:"Required;Email;MaxSize(50)"` + OrgName string `binding:"Required;AlphaDashDot;MaxSize(30)"` } func (f *CreateOrgForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { @@ -28,11 +27,9 @@ func (f *CreateOrgForm) Validate(ctx *macaron.Context, errs binding.Errors) bind type UpdateOrgSettingForm struct { OrgUserName string `form:"uname" binding:"Required;AlphaDashDot;MaxSize(30)" locale:"org.org_name_holder"` OrgFullName string `form:"fullname" binding:"MaxSize(100)"` - Email string `form:"email" binding:"Required;Email;MaxSize(50)"` Description string `form:"desc" binding:"MaxSize(255)"` Website string `form:"website" binding:"Url;MaxSize(100)"` Location string `form:"location" binding:"MaxSize(50)"` - Avatar string `form:"avatar" binding:"Required;Email;MaxSize(50)"` } func (f *UpdateOrgSettingForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { |