diff options
author | zeripath <art27@cantab.net> | 2021-05-20 09:29:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 09:29:57 +0100 |
commit | 17be64549845a53f3954f0f2190c085affe7a13f (patch) | |
tree | fb9b1afc48cd1b7541ebe71bf8d4dbbffa6375be /templates/admin/auth/source/ldap.tmpl | |
parent | 124b256c53a80e56df7465d2039c8d2a5f6fae2d (diff) | |
download | gitea-17be64549845a53f3954f0f2190c085affe7a13f.tar.gz gitea-17be64549845a53f3954f0f2190c085affe7a13f.zip |
Encrypt LDAP bind password in db with SECRET_KEY (#15547)
* Encrypt LDAP bind password in db with SECRET_KEY
The LDAP source bind password are currently stored in plaintext in the db
This PR simply encrypts them with the setting.SECRET_KEY.
Fix #15460
Signed-off-by: Andrew Thornton <art27@cantab.net>
* remove ui warning regarding unencrypted password
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'templates/admin/auth/source/ldap.tmpl')
-rw-r--r-- | templates/admin/auth/source/ldap.tmpl | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/templates/admin/auth/source/ldap.tmpl b/templates/admin/auth/source/ldap.tmpl index 584538f53b..1cbcb2fd41 100644 --- a/templates/admin/auth/source/ldap.tmpl +++ b/templates/admin/auth/source/ldap.tmpl @@ -28,7 +28,6 @@ <div class="ldap field {{if not (eq .type 2)}}hide{{end}}"> <label for="bind_password">{{.i18n.Tr "admin.auths.bind_password"}}</label> <input id="bind_password" name="bind_password" type="password" autocomplete="off" value="{{.bind_password}}"> - <p class="help text red">{{.i18n.Tr "admin.auths.bind_password_helper"}}</p> </div> <div class="binddnrequired {{if (eq .type 2)}}required{{end}} field"> <label for="user_base">{{.i18n.Tr "admin.auths.user_base"}}</label> |