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. */
| 2290 | /* Set the password for the "default" ACL user. This implements supports for |
| 2291 | * requirepass config, so passing in NULL will set the user to be nopass. */ |
| 2292 | void ACLUpdateDefaultUserPassword(sds password) { |
| 2293 | ACLSetUser(DefaultUser,"resetpass",-1); |
| 2294 | if (password) { |
| 2295 | sds aclop = sdscatlen(sdsnew(">"), password, sdslen(password)); |
| 2296 | ACLSetUser(DefaultUser,aclop,sdslen(aclop)); |
| 2297 | sdsfree(aclop); |
| 2298 | } else { |
| 2299 | ACLSetUser(DefaultUser,"nopass",-1); |
| 2300 | } |
| 2301 | } |
no test coverage detected