diff options
author | Unknwon <u@gogs.io> | 2015-12-10 19:02:57 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-10 19:02:57 -0500 |
commit | 3d5d61778ac8fab981720b5f8b7fe75e2fb58434 (patch) | |
tree | d22e52c2cc8ad9fb948322252a594225cf1b71b2 /routers/api/v1/admin | |
parent | ddcc8d998c93d6e252319a82b116dbe553a919ad (diff) | |
download | gitea-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.go | 2 |
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) |