summaryrefslogtreecommitdiffstats
path: root/routers/admin/users.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/admin/users.go')
-rw-r--r--routers/admin/users.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/admin/users.go b/routers/admin/users.go
index 5e6c3a13cc..ada0df5905 100644
--- a/routers/admin/users.go
+++ b/routers/admin/users.go
@@ -90,7 +90,7 @@ func NewUserPost(ctx *middleware.Context, form auth.AdminCrateUserForm) {
Email: form.Email,
Passwd: form.Password,
IsActive: true,
- LoginType: models.PLAIN,
+ LoginType: models.LOGIN_PLAIN,
}
if len(form.LoginType) > 0 {