requirepass with no password with remove auth, fixes #39

This commit is contained in:
Josh Baker 2016-08-26 07:19:31 -07:00
parent 01c05b2ce9
commit a2fa6444b1
1 changed files with 3 additions and 1 deletions

View File

@ -242,7 +242,9 @@ func (c *Controller) cmdConfigSet(msg *server.Message) (res string, err error) {
}
var value string
if vs, value, ok = tokenval(vs); !ok {
return "", errInvalidNumberOfArguments
if strings.ToLower(name) != "requirepass" {
return "", errInvalidNumberOfArguments
}
}
if len(vs) != 0 {
return "", errInvalidNumberOfArguments