Set the password for the "default" ACL user. This implements supports for * requirepass config, so passing in NULL will set the user to be nopass. */
| 2281 | /* Set the password for the "default" ACL user. This implements supports for |
| 2282 | * requirepass config, so passing in NULL will set the user to be nopass. */ |
| 2283 | void ACLUpdateDefaultUserPassword(sds password) { |
| 2284 | ACLSetUser(DefaultUser,"resetpass",-1); |
| 2285 | if (password) { |
| 2286 | sds aclop = sdscatlen(sdsnew(">"), password, sdslen(password)); |
| 2287 | ACLSetUser(DefaultUser,aclop,sdslen(aclop)); |
| 2288 | sdsfree(aclop); |
| 2289 | } else { |
| 2290 | ACLSetUser(DefaultUser,"nopass",-1); |
| 2291 | } |
| 2292 | } |
no test coverage detected