diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-05-05 16:42:15 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-05-05 16:42:15 +0800 |
commit | d8136c9c3cf0f7d84510402f01cbe07a656a0587 (patch) | |
tree | 2a1a7553a111a008a0322625c30130ca952b6acd /modules/auth/admin.go | |
parent | 02687cbdf37be3c89005abe45c7d1f6240e339e0 (diff) | |
parent | 1652dd5068f2f3ae1851bc2321832c88af85d570 (diff) | |
download | gitea-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.go | 13 |
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 { |