Skip to content

Commit

Permalink
Fix CryptLib parameter order
Browse files Browse the repository at this point in the history
  • Loading branch information
ircmaxell committed Aug 10, 2011
1 parent 3086415 commit 367e638
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/CryptLib/CryptLib.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ public function createPasswordHash($password, $prefix = '$2a$') {
/**
* Verify a password against a supplied password hash
*
* @param string $hash The valid hash to verify against
* @param string $password The supplied password to attempt to verify
* @param string $hash The valid hash to verify against
*
* @return boolean Is the password valid
*/
public function verifyPasswordHash($hash, $password) {
public function verifyPasswordHash($password, $hash) {
$factory = new PasswordFactory();
return $factory->verifyHash($hash, $password);
return $factory->verifyHash($password, $hash);
}

/**
Expand Down

0 comments on commit 367e638

Please sign in to comment.