validatePassword() public method
Verifies a password against a hash.
See also generatePasswordHash().
public boolean validatePassword ( $password, $hash ) | ||
---|---|---|
$password | string |
The password to verify. |
$hash | string |
The hash to verify the password against. |
return | boolean |
Whether the password is correct. |
throws | yii\base\InvalidParamException |
on bad password/hash parameters or if crypt() with Blowfish hash is not available. |
Please login to continue.