diff options
author | Segev Finer <segev208@gmail.com> | 2019-02-25 20:56:47 +0200 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-02-25 13:56:47 -0500 |
commit | 594f59169129889387d792f6aa571150d4118dc6 (patch) | |
tree | ef4ba7db59acf97a5a2fd0d243d13958e3282811 /modules/auth/org.go | |
parent | 795f6e04ad7e42d168b85d44ec17eab31d741808 (diff) | |
download | gitea-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/org.go')
-rw-r--r-- | modules/auth/org.go | 4 |
1 files changed, 2 insertions, 2 deletions
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)"` |