The stored password can be plain, a md5 hash or a phpass hash.
If the password wasn't a phppass hash, the Weak property is set to **true**.
public checkPassword ( string $Password, string $StoredHash, boolean | string $Method = false ) : boolean | ||
$Password | string | The plaintext password to check. |
$StoredHash | string | The password hash stored in the database. |
$Method | boolean | string | The password hashing method. |
Résultat | boolean | Returns **true** if the password matches the hash or **false** if it doesn't. |