diff options
Diffstat (limited to 'modules/auth/org.go')
-rw-r--r-- | modules/auth/org.go | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/modules/auth/org.go b/modules/auth/org.go index 0dfab951e4..6d9a7269ec 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)" locale:"org.org_name_holder"` } func (f *CreateOrgForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { @@ -26,13 +25,11 @@ 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)"` + Name string `binding:"Required;AlphaDashDot;MaxSize(30)" locale:"org.org_name_holder"` + FullName string `binding:"MaxSize(100)"` + Description string `binding:"MaxSize(255)"` + Website string `binding:"Url;MaxSize(100)"` + Location string `binding:"MaxSize(50)"` } func (f *UpdateOrgSettingForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { |