diff options
author | zeripath <art27@cantab.net> | 2020-01-20 03:47:39 +0000 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-20 11:47:39 +0800 |
commit | c5014a7f2c4a263818269216d16d6f21b008cd17 (patch) | |
tree | 42423c1aa2ac688b4694e36bdc450d47d4276299 /routers/admin | |
parent | 54c2854cd2c4084ead621fa42565100338ff3467 (diff) | |
download | gitea-c5014a7f2c4a263818269216d16d6f21b008cd17.tar.gz gitea-c5014a7f2c4a263818269216d16d6f21b008cd17.zip |
Add option to prevent LDAP from deactivating everything on empty search (#9879)
* Add option to prevent LDAP from deactivating everything on empty search
* Update options/locale/locale_en-US.ini
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'routers/admin')
-rw-r--r-- | routers/admin/auths.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/admin/auths.go b/routers/admin/auths.go index 8a16e36bf5..4fa76df44e 100644 --- a/routers/admin/auths.go +++ b/routers/admin/auths.go @@ -130,6 +130,7 @@ func parseLDAPConfig(form auth.AuthenticationForm) *models.LDAPConfig { SearchPageSize: pageSize, Filter: form.Filter, AdminFilter: form.AdminFilter, + AllowDeactivateAll: form.AllowDeactivateAll, Enabled: true, }, } |