aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/user_form.go
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/user_form.go
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/user_form.go')
-rw-r--r--modules/auth/user_form.go4
1 files changed, 2 insertions, 2 deletions
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