summaryrefslogtreecommitdiffstats
path: root/templates/admin/auth/source/ldap.tmpl
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-07-25 08:09:52 +0100
committerGitHub <noreply@github.com>2021-07-25 08:09:52 +0100
commit6a33b290a09b623bfb85d0bc03b2c7e6524ecf2d (patch)
tree331ec300f1aff93eedd9273cfb8f2a90f63028e6 /templates/admin/auth/source/ldap.tmpl
parentfd15fd4c67b22189a18765f888bb3f19e241acbe (diff)
downloadgitea-6a33b290a09b623bfb85d0bc03b2c7e6524ecf2d.tar.gz
gitea-6a33b290a09b623bfb85d0bc03b2c7e6524ecf2d.zip
Fix add authentication page (#16543)
* Fix add authentication page There is a regression in #16199 whereby the add authentication page fails to react to the change in selected type. This is due to the String() method on the LoginSourceType which is ameliorated with an Int() function being added. Following on from this there are a few other related bugs. Fix #16541 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'templates/admin/auth/source/ldap.tmpl')
-rw-r--r--templates/admin/auth/source/ldap.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/auth/source/ldap.tmpl b/templates/admin/auth/source/ldap.tmpl
index 1cbcb2fd41..0b7ad7a4da 100644
--- a/templates/admin/auth/source/ldap.tmpl
+++ b/templates/admin/auth/source/ldap.tmpl
@@ -7,7 +7,7 @@
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu">
{{range .SecurityProtocols}}
- <div class="item" data-value="{{.Type}}">{{.Name}}</div>
+ <div class="item" data-value="{{.Type.Int}}">{{.Name}}</div>
{{end}}
</div>
</div>