summaryrefslogtreecommitdiffstats
path: root/modules/auth
diff options
context:
space:
mode:
authorSegev Finer <segev208@gmail.com>2019-02-25 20:56:47 +0200
committertechknowlogick <matti@mdranta.net>2019-02-25 13:56:47 -0500
commit594f59169129889387d792f6aa571150d4118dc6 (patch)
treeef4ba7db59acf97a5a2fd0d243d13958e3282811 /modules/auth
parent795f6e04ad7e42d168b85d44ec17eab31d741808 (diff)
downloadgitea-594f59169129889387d792f6aa571150d4118dc6.tar.gz
gitea-594f59169129889387d792f6aa571150d4118dc6.zip
Increase Username and Orgname MaxSize 35 -> 40 (#6178)
* Increase Username and Orgname MaxSize 35 -> 40 Signed-off-by: Segev Finer <segev@codeocean.com> * Dep update code.gitea.io/sdk Signed-off-by: Segev Finer <segev@codeocean.com> * Run generate-swagger Signed-off-by: Segev Finer <segev@codeocean.com>
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/admin.go2
-rw-r--r--modules/auth/org.go4
-rw-r--r--modules/auth/user_form.go4
-rw-r--r--modules/auth/user_form_auth_openid.go2
4 files changed, 6 insertions, 6 deletions
diff --git a/modules/auth/admin.go b/modules/auth/admin.go
index fb86a04764..8f8dd8f22a 100644
--- a/modules/auth/admin.go
+++ b/modules/auth/admin.go
@@ -14,7 +14,7 @@ import (
type AdminCreateUserForm struct {
LoginType string `binding:"Required"`
LoginName string
- UserName string `binding:"Required;AlphaDashDot;MaxSize(35)"`
+ UserName string `binding:"Required;AlphaDashDot;MaxSize(40)"`
Email string `binding:"Required;Email;MaxSize(254)"`
Password string `binding:"MaxSize(255)"`
SendNotify bool
diff --git a/modules/auth/org.go b/modules/auth/org.go
index e4921c2267..d51ab75d3a 100644
--- a/modules/auth/org.go
+++ b/modules/auth/org.go
@@ -22,7 +22,7 @@ import (
// CreateOrgForm form for creating organization
type CreateOrgForm struct {
- OrgName string `binding:"Required;AlphaDashDot;MaxSize(35)" locale:"org.org_name_holder"`
+ OrgName string `binding:"Required;AlphaDashDot;MaxSize(40)" locale:"org.org_name_holder"`
Visibility structs.VisibleType
}
@@ -33,7 +33,7 @@ func (f *CreateOrgForm) Validate(ctx *macaron.Context, errs binding.Errors) bind
// UpdateOrgSettingForm form for updating organization settings
type UpdateOrgSettingForm struct {
- Name string `binding:"Required;AlphaDashDot;MaxSize(35)" locale:"org.org_name_holder"`
+ Name string `binding:"Required;AlphaDashDot;MaxSize(40)" locale:"org.org_name_holder"`
FullName string `binding:"MaxSize(100)"`
Description string `binding:"MaxSize(255)"`
Website string `binding:"ValidUrl;MaxSize(255)"`
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index f59b795b4e..3a4df8ea7d 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -76,7 +76,7 @@ func (f *InstallForm) Validate(ctx *macaron.Context, errs binding.Errors) bindin
// RegisterForm form for registering
type RegisterForm struct {
- UserName string `binding:"Required;AlphaDashDot;MaxSize(35)"`
+ UserName string `binding:"Required;AlphaDashDot;MaxSize(40)"`
Email string `binding:"Required;Email;MaxSize(254)"`
Password string `binding:"Required;MaxSize(255)"`
Retype string
@@ -146,7 +146,7 @@ func (f *SignInForm) Validate(ctx *macaron.Context, errs binding.Errors) binding
// UpdateProfileForm form for updating profile
type UpdateProfileForm struct {
- Name string `binding:"AlphaDashDot;MaxSize(35)"`
+ Name string `binding:"AlphaDashDot;MaxSize(40)"`
FullName string `binding:"MaxSize(100)"`
Email string `binding:"Required;Email;MaxSize(254)"`
KeepEmailPrivate bool
diff --git a/modules/auth/user_form_auth_openid.go b/modules/auth/user_form_auth_openid.go
index 6a3c284873..275850d09a 100644
--- a/modules/auth/user_form_auth_openid.go
+++ b/modules/auth/user_form_auth_openid.go
@@ -22,7 +22,7 @@ func (f *SignInOpenIDForm) Validate(ctx *macaron.Context, errs binding.Errors) b
// SignUpOpenIDForm form for signin up with OpenID
type SignUpOpenIDForm struct {
- UserName string `binding:"Required;AlphaDashDot;MaxSize(35)"`
+ UserName string `binding:"Required;AlphaDashDot;MaxSize(40)"`
Email string `binding:"Required;Email;MaxSize(254)"`
GRecaptchaResponse string `form:"g-recaptcha-response"`
}