aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/admin.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-05-05 16:42:15 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-05-05 16:42:15 +0800
commitd8136c9c3cf0f7d84510402f01cbe07a656a0587 (patch)
tree2a1a7553a111a008a0322625c30130ca952b6acd /modules/auth/admin.go
parent02687cbdf37be3c89005abe45c7d1f6240e339e0 (diff)
parent1652dd5068f2f3ae1851bc2321832c88af85d570 (diff)
downloadgitea-d8136c9c3cf0f7d84510402f01cbe07a656a0587.tar.gz
gitea-d8136c9c3cf0f7d84510402f01cbe07a656a0587.zip
Merge branch 'dev-ldap' into dev
Diffstat (limited to 'modules/auth/admin.go')
-rw-r--r--modules/auth/admin.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/auth/admin.go b/modules/auth/admin.go
index 51c1b78cc7..c82fa78150 100644
--- a/modules/auth/admin.go
+++ b/modules/auth/admin.go
@@ -16,12 +16,13 @@ import (
)
type AdminEditUserForm struct {
- Email string `form:"email" binding:"Required;Email;MaxSize(50)"`
- Website string `form:"website" binding:"MaxSize(50)"`
- Location string `form:"location" binding:"MaxSize(50)"`
- Avatar string `form:"avatar" binding:"Required;Email;MaxSize(50)"`
- Active string `form:"active"`
- Admin string `form:"admin"`
+ Email string `form:"email" binding:"Required;Email;MaxSize(50)"`
+ Website string `form:"website" binding:"MaxSize(50)"`
+ Location string `form:"location" binding:"MaxSize(50)"`
+ Avatar string `form:"avatar" binding:"Required;Email;MaxSize(50)"`
+ Active string `form:"active"`
+ Admin string `form:"admin"`
+ LoginType int `form:"login_type"`
}
func (f *AdminEditUserForm) Name(field string) string {