mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	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>
This commit is contained in:
		@@ -53,7 +53,6 @@
 | 
			
		||||
						<div class="field">
 | 
			
		||||
							<label for="bind_password">{{.i18n.Tr "admin.auths.bind_password"}}</label>
 | 
			
		||||
							<input id="bind_password" name="bind_password" type="password" value="{{$cfg.BindPassword}}">
 | 
			
		||||
							<p class="help text red">{{.i18n.Tr "admin.auths.bind_password_helper"}}</p>
 | 
			
		||||
						</div>
 | 
			
		||||
					{{end}}
 | 
			
		||||
					<div class="{{if .Source.IsLDAP}}required{{end}} field">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user