This function allows you to verify a user password using a password hash.
Parameter |
Type |
Description |
|---|---|---|
$password |
string |
user password |
$hash |
string |
Password hash |
This function returns true or false, depending on the result of the user password verification using the password hash.
Example:
…
$password = $this->getTableValue('PASSWORD');
$hash = $this->getTableValue('PASSWORD_HASH');
$isValid = $this->verifyPassword($password, $hash);
…