Formats a password using the current encryption. If the user ID is given and the hash does not fit the current hashing algorithm, it automatically updates the hash.
Signature
public function verifyPassword(string
$password,
[string
$hash = 0,
[integer
$user_id = 0]] )
Parameters
$password
The plaintext password to check.
$hash
The hash to verify against.
$user_id
ID of the user if the password hash should be updated
Returns
boolean
True if the password and hash match, false otherwise