Skip to content

Commit

Permalink
Update wrapper with new signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Babker committed May 12, 2018
1 parent ccd2097 commit e8f00e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libraries/src/User/UserWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,19 @@ public function getUserId($username)
/**
* Helper wrapper method for hashPassword
*
* @param string $password The plaintext password to encrypt.
* @param string $password The plaintext password to encrypt.
* @param integer $algorithm The hashing algorithm to use, represented by `PASSWORD_*` constants.
* @param array $options The options for the algorithm to use.
*
* @return string The encrypted password.
*
* @see UserHelper::hashPassword()
* @since 3.4
* @deprecated 4.0 Use `Joomla\CMS\User\UserHelper` directly
*/
public function hashPassword($password)
public function hashPassword($password, $algorithm = PASSWORD_BCRYPT, array $options = array())
{
return UserHelper::hashPassword($password);
return UserHelper::hashPassword($password, $algorithm, $options);
}

/**
Expand Down

0 comments on commit e8f00e5

Please sign in to comment.