summaryrefslogtreecommitdiffstats
path: root/modules/auth/admin.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-05 05:32:47 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-05 05:32:47 -0400
commit3b7465f8171ddcc992498e14d8b608cad34c26da (patch)
treec78568eb08955ca968f793e9e7ae1d2f2e6f0415 /modules/auth/admin.go
parentd8136c9c3cf0f7d84510402f01cbe07a656a0587 (diff)
downloadgitea-3b7465f8171ddcc992498e14d8b608cad34c26da.tar.gz
gitea-3b7465f8171ddcc992498e14d8b608cad34c26da.zip
fix code
Diffstat (limited to 'modules/auth/admin.go')
-rw-r--r--modules/auth/admin.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/auth/admin.go b/modules/auth/admin.go
index c82fa78150..39d2d09620 100644
--- a/modules/auth/admin.go
+++ b/modules/auth/admin.go
@@ -20,8 +20,8 @@ type AdminEditUserForm struct {
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"`
+ Active bool `form:"active"`
+ Admin bool `form:"admin"`
LoginType int `form:"login_type"`
}