mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
feat(api): filter LDAP password from settings response (#2488)
This commit is contained in:
parent
17d63ae3ca
commit
d510bbbcfd
3 changed files with 6 additions and 1 deletions
|
@ -9,6 +9,10 @@ import (
|
|||
"github.com/portainer/portainer/http/security"
|
||||
)
|
||||
|
||||
func hideFields(settings *portainer.Settings) {
|
||||
settings.LDAPSettings.Password = ""
|
||||
}
|
||||
|
||||
// Handler is the HTTP handler used to handle settings operations.
|
||||
type Handler struct {
|
||||
*mux.Router
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue