mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(auth): don't clear client secret on update
This commit is contained in:
parent
2ee6f2780b
commit
996319d299
1 changed files with 5 additions and 0 deletions
|
@ -71,7 +71,12 @@ func (handler *Handler) settingsUpdate(w http.ResponseWriter, r *http.Request) *
|
|||
}
|
||||
|
||||
if payload.OAuthSettings != nil {
|
||||
clientSecret := payload.OAuthSettings.ClientSecret
|
||||
if clientSecret == "" {
|
||||
clientSecret = settings.OAuthSettings.ClientSecret
|
||||
}
|
||||
settings.OAuthSettings = *payload.OAuthSettings
|
||||
settings.OAuthSettings.ClientSecret = clientSecret
|
||||
}
|
||||
|
||||
if payload.AllowBindMountsForRegularUsers != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue