aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-05 10:16:21 +0800
committerUnknwon <u@gogs.io>2015-08-05 10:16:21 +0800
commit487fc8ca39a3de565fc6c67aea72c4658bbf64c8 (patch)
tree97321f9075123515143c673366689b8f1307f12f
parente6792796cc25c9a6db91998599a47d3f64016975 (diff)
downloadgitea-487fc8ca39a3de565fc6c67aea72c4658bbf64c8.tar.gz
gitea-487fc8ca39a3de565fc6c67aea72c4658bbf64c8.zip
fix #1439
-rw-r--r--modules/auth/org.go2
-rw-r--r--templates/org/settings/options.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/auth/org.go b/modules/auth/org.go
index 3e6c55c182..0dfab951e4 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 cc7065e8fb..169067a79d 100644
--- a/templates/org/settings/options.tmpl
+++ b/templates/org/settings/options.tmpl
@@ -16,7 +16,7 @@
{{.CsrfTokenHtml}}
<input type="hidden" name="action" value="update">
<div class="field">
- <label class="req" for="orgname">{{.i18n.Tr "username"}}</label>
+ <label class="req" for="orgname">{{.i18n.Tr "org.org_name_holder"}}</label>
<input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="orgname" name="uname" value="{{.Org.Name}}" data-orgname="{{.Org.Name}}" required />
</div>
<div class="white-popup-block mfp-hide" id="change-orgname-modal">