summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/admin/users.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/admin/users.go')
-rw-r--r--routers/api/v1/admin/users.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/admin/users.go b/routers/api/v1/admin/users.go
index 1252ebbf49..1bd253681b 100644
--- a/routers/api/v1/admin/users.go
+++ b/routers/api/v1/admin/users.go
@@ -43,7 +43,7 @@ func CreateUser(ctx *middleware.Context, form api.CreateUserOption) {
Email: form.Email,
Passwd: form.Password,
IsActive: true,
- LoginType: models.PLAIN,
+ LoginType: models.LOGIN_PLAIN,
}
parseLoginSource(ctx, u, form.SourceID, form.LoginName)