To check whether a password is correct or not, we need three values: password, password_hash and password_salt
...
Code Block | ||
---|---|---|
| ||
$password_hash = password_hash('password', PASSWORD_BCRYPT, array('cost' => 10)); |
To check whether a password is correct or not:
...