summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLydia Sevelt <LydiaSevelt@gmail.com>2015-08-18 13:56:36 -0400
committerLydia Sevelt <LydiaSevelt@gmail.com>2015-08-18 13:56:36 -0400
commitbfa8ef68a69fd49294703f86138f88db791dcd26 (patch)
tree6f876dfba093c303af071a46a80dec9f5d78f892
parent81b8427438d4d37d38a46d0fec4c22aee60f91fa (diff)
downloadgitea-bfa8ef68a69fd49294703f86138f88db791dcd26.tar.gz
gitea-bfa8ef68a69fd49294703f86138f88db791dcd26.zip
Change input field to type=password for the authentication templates.
-rw-r--r--templates/admin/auth/edit.tmpl2
-rw-r--r--templates/admin/auth/new.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl
index 2af8d54131..3fd772de63 100644
--- a/templates/admin/auth/edit.tmpl
+++ b/templates/admin/auth/edit.tmpl
@@ -49,7 +49,7 @@
</div>
<div class="field">
<label for="bind_password">{{.i18n.Tr "admin.auths.bind_password"}}</label>
- <input class="ipt ipt-large ipt-radius {{if .Err_BindPassword}}ipt-error{{end}}" id="bind_password" name="bind_password" value="{{.Source.LDAP.BindPassword}}" />
+ <input class="ipt ipt-large ipt-radius {{if .Err_BindPassword}}ipt-error{{end}}" id="bind_password" name="bind_password" type="password" value="{{.Source.LDAP.BindPassword}}" />
</div>
<div class="field">
<label class="req" for="user_base">{{.i18n.Tr "admin.auths.user_base"}}</label>
diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl
index bad90cc419..80d7c266f2 100644
--- a/templates/admin/auth/new.tmpl
+++ b/templates/admin/auth/new.tmpl
@@ -45,7 +45,7 @@
</div>
<div class="field">
<label class="req" for="bind_password">{{.i18n.Tr "admin.auths.bind_password"}}</label>
- <input class="ipt ipt-large ipt-radius {{if .Err_BindPassword}}ipt-error{{end}}" id="bind_password" name="bind_password" value="{{.bind_password}}" />
+ <input class="ipt ipt-large ipt-radius {{if .Err_BindPassword}}ipt-error{{end}}" id="bind_password" name="bind_password" type="password" value="{{.bind_password}}" />
</div>
<div class="field">
<label class="req" for="user_base">{{.i18n.Tr "admin.auths.user_base"}}</label>