Skip to content

Commit

Permalink
Cleaned up auth method.
Browse files Browse the repository at this point in the history
  • Loading branch information
joelcox committed Mar 24, 2013
1 parent bc9453d commit 7aac0bf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libraries/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,8 @@ private function _auth()
if ( ! empty($password))
{

// Sent auth command to the server
$response = $this->command('AUTH ' . $password);

// See if we authenticated successfully
if ( $response != 'OK' )
if ($this->command('AUTH ' . $password))

This comment has been minimized.

Copy link
@aw

aw Mar 28, 2013

Contributor

Perhaps this should be if ($this->command('AUTH ' . $password) != 'OK')

See Issue #31

This comment has been minimized.

Copy link
@joelcox

joelcox via email Mar 28, 2013

Author Owner
{
show_error('Could not connect to Redis, invalid password');
}
Expand Down

0 comments on commit 7aac0bf

Please sign in to comment.