Back to PHPassHandler class

Method validatePassword

public bool
validatePassword
(mixed $plaintext, mixed $hashed)
Validate a password
Parameters
  • string $pla intext The plain text password to validate
  • string $hashed The password hash to validate against
Returns
  • bool
Since
  • 4.0.0
Class: PHPassHandler
Project: Joomla

Method validatePassword - Source code

/**
 * Validate a password
 *
 * @param   string  $plaintext  The plain text password to validate
 * @param   string  $hashed     The password hash to validate against
 *
 * @return  boolean
 *
 * @since   4.0.0
 */
public function validatePassword($plaintext, $hashed)
{
    return $this->getPasswordHash()->CheckPassword($plaintext, $hashed);
}