1
0
Fork 0
forked from External/grumble

Only send configuration updates if the channel exists

This commit is contained in:
Ola Bini 2020-03-25 19:54:32 +00:00
parent bbb589fb37
commit 6cddec04b5
No known key found for this signature in database
GPG key ID: 6786A150F6A2B28F

View file

@ -193,7 +193,10 @@ func (server *Server) SetSuperUserPassword(password string) {
key := "SuperUserPassword"
val := "sha1$" + salt + "$" + digest
server.cfg.Set(key, val)
if server.cfgUpdate != nil {
server.cfgUpdate <- &KeyValuePair{Key: key, Value: val}
}
}
// CheckSuperUserPassword checks whether password matches the set SuperUser password.