summaryrefslogtreecommitdiffstats
path: root/templates/admin/auth/edit.tmpl
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-01-20 03:47:39 +0000
committerLunny Xiao <xiaolunwen@gmail.com>2020-01-20 11:47:39 +0800
commitc5014a7f2c4a263818269216d16d6f21b008cd17 (patch)
tree42423c1aa2ac688b4694e36bdc450d47d4276299 /templates/admin/auth/edit.tmpl
parent54c2854cd2c4084ead621fa42565100338ff3467 (diff)
downloadgitea-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 'templates/admin/auth/edit.tmpl')
-rw-r--r--templates/admin/auth/edit.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl
index d1a614b1f0..3f515bbf48 100644
--- a/templates/admin/auth/edit.tmpl
+++ b/templates/admin/auth/edit.tmpl
@@ -112,6 +112,12 @@
</div>
</div>
{{end}}
+ <div class="inline field">
+ <div class="ui checkbox">
+ <label for="allow_deactivate_all"><strong>{{.i18n.Tr "admin.auths.allow_deactivate_all"}}</strong></label>
+ <input id="allow_deactivate_all" name="allow_deactivate_all" type="checkbox" {{if $cfg.AllowDeactivateAll}}checked{{end}}>
+ </div>
+ </div>
{{end}}
<!-- SMTP -->