aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/user_form.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-13 09:51:51 -0400
committerUnknwon <u@gogs.io>2015-09-13 09:51:51 -0400
commit8e0a69f86a9e103d1d82d3c5000e01b4e2570a51 (patch)
tree6c0802f63be1ff7867b80375b406dd8b520f6b1e /modules/auth/user_form.go
parente2d6b0116e44ca0fa2c577f40adde4ebfa612ae0 (diff)
downloadgitea-8e0a69f86a9e103d1d82d3c5000e01b4e2570a51.tar.gz
gitea-8e0a69f86a9e103d1d82d3c5000e01b4e2570a51.zip
#697 disable captcha and new admin create user UI
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r--modules/auth/user_form.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index f65b9d5303..dde403c26e 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -58,12 +58,12 @@ func (f *InstallForm) Validate(ctx *macaron.Context, errs binding.Errors) bindin
// \/ \/
type RegisterForm struct {
- UserName string `form:"uname" binding:"Required;AlphaDashDot;MaxSize(35)"`
- Email string `form:"email" binding:"Required;Email;MaxSize(254)"`
- Password string `form:"password" binding:"Required;MaxSize(255)"`
- Retype string `form:"retype"`
- LoginType string `form:"logintype"`
- LoginName string `form:"loginname"`
+ UserName string `binding:"Required;AlphaDashDot;MaxSize(35)"`
+ Email string `binding:"Required;Email;MaxSize(254)"`
+ Password string `binding:"Required;MaxSize(255)"`
+ Retype string
+ LoginType string
+ LoginName string
}
func (f *RegisterForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {