fix: reload HideLocalLogin immediately after settings change. Related to #857
When 'Hide local login form' was toggled in Settings, the change was saved to disk but not applied to the in-memory config until restart. Now reloadSystemSettings() also updates config.HideLocalLogin so the setting takes effect immediately.
This commit is contained in:
parent
a4b5ce4b25
commit
a340833397
1 changed files with 3 additions and 0 deletions
|
|
@ -1756,6 +1756,9 @@ func (r *Router) reloadSystemSettings() {
|
|||
r.cachedAllowEmbedding = systemSettings.AllowEmbedding
|
||||
r.cachedAllowedOrigins = systemSettings.AllowedEmbedOrigins
|
||||
|
||||
// Update HideLocalLogin so it takes effect immediately without restart
|
||||
r.config.HideLocalLogin = systemSettings.HideLocalLogin
|
||||
|
||||
// Update webhook allowed private CIDRs in notification manager
|
||||
if r.monitor != nil {
|
||||
if nm := r.monitor.GetNotificationManager(); nm != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue