Méthode | Description | |
---|---|---|
__construct ( ) | ||
check ( string $password, string $hash, string | integer $user_id = '' ) : boolean | Checks the plaintext password against the encrypted Password. | |
makeHash ( string $password ) : string | Create a hash (encrypt) of a plain text password. |
public check ( string $password, string $hash, string | integer $user_id = '' ) : boolean | ||
$password | string | Plaintext user's password |
$hash | string | Hash of the user's password to check against. |
$user_id | string | integer | Optional. User ID. |
Résultat | boolean | False, if the $password does not match the hashed password |