From 487fc8ca39a3de565fc6c67aea72c4658bbf64c8 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 5 Aug 2015 10:16:21 +0800 Subject: [PATCH] fix #1439 --- modules/auth/org.go | 2 +- templates/org/settings/options.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/auth/org.go b/modules/auth/org.go index 3e6c55c1829..0dfab951e41 100644 --- a/modules/auth/org.go +++ b/modules/auth/org.go @@ -26,7 +26,7 @@ func (f *CreateOrgForm) Validate(ctx *macaron.Context, errs binding.Errors) bind } type UpdateOrgSettingForm struct { - OrgUserName string `form:"uname" binding:"Required;MaxSize(35)"` + 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)"` diff --git a/templates/org/settings/options.tmpl b/templates/org/settings/options.tmpl index cc7065e8fb8..169067a79d3 100644 --- a/templates/org/settings/options.tmpl +++ b/templates/org/settings/options.tmpl @@ -16,7 +16,7 @@ {{.CsrfTokenHtml}}
- +