summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/admin
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-10 19:02:57 -0500
committerUnknwon <u@gogs.io>2015-12-10 19:02:57 -0500
commit3d5d61778ac8fab981720b5f8b7fe75e2fb58434 (patch)
treed22e52c2cc8ad9fb948322252a594225cf1b71b2 /routers/api/v1/admin
parentddcc8d998c93d6e252319a82b116dbe553a919ad (diff)
downloadgitea-3d5d61778ac8fab981720b5f8b7fe75e2fb58434.tar.gz
gitea-3d5d61778ac8fab981720b5f8b7fe75e2fb58434.zip
#1938 #1374 disable password change for non-local users
Diffstat (limited to 'routers/api/v1/admin')
-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)