aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/auth.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-13 16:21:16 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-13 16:21:16 -0400
commit52de63e7bbd500a90a1a8cb62cdb490b0ba623c7 (patch)
tree58360a2e5d51285807573d3d58bb90e43bb89041 /modules/auth/auth.go
parentc01f593daa994dddc208f853c1c116c56d2ea397 (diff)
downloadgitea-52de63e7bbd500a90a1a8cb62cdb490b0ba623c7.tar.gz
gitea-52de63e7bbd500a90a1a8cb62cdb490b0ba623c7.zip
Allow 1 letter usernames
Diffstat (limited to 'modules/auth/auth.go')
-rw-r--r--modules/auth/auth.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/auth/auth.go b/modules/auth/auth.go
index b085527554..0e87168891 100644
--- a/modules/auth/auth.go
+++ b/modules/auth/auth.go
@@ -23,7 +23,7 @@ type Form interface {
}
type RegisterForm struct {
- UserName string `form:"username" binding:"Required;AlphaDash;MinSize(5);MaxSize(30)"`
+ UserName string `form:"username" binding:"Required;AlphaDash;MaxSize(30)"`
Email string `form:"email" binding:"Required;Email;MaxSize(50)"`
Password string `form:"passwd" binding:"Required;MinSize(6);MaxSize(30)"`
RetypePasswd string `form:"retypepasswd"`
@@ -59,7 +59,7 @@ func (f *RegisterForm) Validate(errors *binding.Errors, req *http.Request, conte
}
type LogInForm struct {
- UserName string `form:"username" binding:"Required;AlphaDash;MinSize(5);MaxSize(30)"`
+ UserName string `form:"username" binding:"Required;AlphaDash;MaxSize(30)"`
Password string `form:"passwd" binding:"Required;MinSize(6);MaxSize(30)"`
}