aboutsummaryrefslogtreecommitdiff
path: root/modules/auth/user_form.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-13 11:07:21 -0400
committerUnknwon <u@gogs.io>2015-09-13 11:07:21 -0400
commit83e747bfda43c2c8fa0aceb2c989d42fe5ca1582 (patch)
tree1dfee9128010bb08ad2177c24fd1c5c8c53d45cd /modules/auth/user_form.go
parente5ed5904c62d9a618cb6f4ad852b021a02c3481e (diff)
#697 and #1606 and new admin edit user UI
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r--modules/auth/user_form.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index 5259e1ee..62ecf8a4 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -78,18 +78,6 @@ func (f *SignInForm) Validate(ctx *macaron.Context, errs binding.Errors) binding
return validate(errs, ctx.Data, f, ctx.Locale)
}
-type AdminCrateUserForm struct {
- UserName string `binding:"Required;AlphaDashDot;MaxSize(35)"`
- Email string `binding:"Required;Email;MaxSize(254)"`
- Password string `binding:"MaxSize(255)"`
- LoginType string
- LoginName string
-}
-
-func (f *AdminCrateUserForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
- return validate(errs, ctx.Data, f, ctx.Locale)
-}
-
// __________________________________________.___ _______ ________ _________
// / _____/\_ _____/\__ ___/\__ ___/| |\ \ / _____/ / _____/
// \_____ \ | __)_ | | | | | |/ | \/ \ ___ \_____ \