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/admin/users.go | |
parent | ddcc8d998c93d6e252319a82b116dbe553a919ad (diff) | |
download | gitea-3d5d61778ac8fab981720b5f8b7fe75e2fb58434.tar.gz gitea-3d5d61778ac8fab981720b5f8b7fe75e2fb58434.zip |
#1938 #1374 disable password change for non-local users
Diffstat (limited to 'routers/admin/users.go')
-rw-r--r-- | routers/admin/users.go | 2 |
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 { |