mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
fix(notifier): regression in startup check (#2248)
The changes in the koanf commit a7e867a699
introduced a regression in the startup procedure that prevented the option to disable the startup check from having an effect. This ensures the startup check is not performed if it is disabled as it was intended.
This commit is contained in:
parent
e930b76464
commit
655ae98ced
|
@ -127,7 +127,7 @@ func getProviders(config *schema.Configuration) (providers middlewares.Providers
|
||||||
errors = append(errors, fmt.Errorf("unrecognized notifier provider"))
|
errors = append(errors, fmt.Errorf("unrecognized notifier provider"))
|
||||||
}
|
}
|
||||||
|
|
||||||
if notifier != nil {
|
if notifier != nil && !config.Notifier.DisableStartupCheck {
|
||||||
if _, err := notifier.StartupCheck(); err != nil {
|
if _, err := notifier.StartupCheck(); err != nil {
|
||||||
errors = append(errors, fmt.Errorf("failed to check notification provider: %w", err))
|
errors = append(errors, fmt.Errorf("failed to check notification provider: %w", err))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user