Skip to content

Support ACL#177

Open
neoteknic wants to merge 1 commit intoerikdubbelboer:masterfrom
neoteknic:patch-1
Open

Support ACL#177
neoteknic wants to merge 1 commit intoerikdubbelboer:masterfrom
neoteknic:patch-1

Conversation

@neoteknic
Copy link
Copy Markdown

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
Copy Markdown
Author

Working for me

Comment thread includes/common.inc.php
}
}
if (isset($server['username']) && isset($server['password'])) {
if (!$redis->auth($server['username'],$server['password'])) {
Copy link
Copy Markdown
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'])) {

Comment thread includes/common.inc.php
}
if (isset($server['username']) && isset($server['password'])) {
if (!$redis->auth($server['username'],$server['password'])) {
die('ERROR: Authentication failed ('.$server['host'].':'.$server['port'].')');
Copy link
Copy Markdown
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