Skip to content

Conversation

@neoteknic
Copy link

Quick support for ACL, use username and password in config instead of auth

Quick support for ACL, use username and password in config instead of auth
@neoteknic
Copy link
Author

Working for me

}
}
if (isset($server['username']) && isset($server['password'])) {
if (!$redis->auth($server['username'],$server['password'])) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!$redis->auth($server['username'],$server['password'])) {
if (!$redis->auth($server['username'], $server['password'])) {

}
if (isset($server['username']) && isset($server['password'])) {
if (!$redis->auth($server['username'],$server['password'])) {
die('ERROR: Authentication failed ('.$server['host'].':'.$server['port'].')');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the return value of auth also be included as that contains a hint to what went wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants