mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08:00
fix SASL enable-disable logic
This commit is contained in:
parent
988cb22692
commit
5b636371a9
1 changed files with 1 additions and 1 deletions
|
|
@ -794,7 +794,7 @@ func (server *Server) applyConfig(config *Config, initial bool) error {
|
||||||
|
|
||||||
// SASL
|
// SASL
|
||||||
oldAccountConfig := server.AccountConfig()
|
oldAccountConfig := server.AccountConfig()
|
||||||
authPreviouslyEnabled := oldAccountConfig != nil && !oldAccountConfig.AuthenticationEnabled
|
authPreviouslyEnabled := oldAccountConfig != nil && oldAccountConfig.AuthenticationEnabled
|
||||||
if config.Accounts.AuthenticationEnabled && !authPreviouslyEnabled {
|
if config.Accounts.AuthenticationEnabled && !authPreviouslyEnabled {
|
||||||
// enabling SASL
|
// enabling SASL
|
||||||
SupportedCapabilities.Enable(caps.SASL)
|
SupportedCapabilities.Enable(caps.SASL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue