mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-18 00:17:39 +01:00
fix: Ensure Env Var takes precedence over system settings for HideLocalLogin. Related to #857
This commit is contained in:
@@ -1855,7 +1855,10 @@ func (r *Router) reloadSystemSettings() {
|
||||
r.cachedAllowedOrigins = systemSettings.AllowedEmbedOrigins
|
||||
|
||||
// Update HideLocalLogin so it takes effect immediately without restart
|
||||
r.config.HideLocalLogin = systemSettings.HideLocalLogin
|
||||
// BUT respect environment variable override if present
|
||||
if !r.config.EnvOverrides["PULSE_AUTH_HIDE_LOCAL_LOGIN"] {
|
||||
r.config.HideLocalLogin = systemSettings.HideLocalLogin
|
||||
}
|
||||
|
||||
// Update webhook allowed private CIDRs in notification manager
|
||||
if r.monitor != nil {
|
||||
|
||||
Reference in New Issue
Block a user