Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var_dump($_POST['pwd']);
- if ($user != false && checkpass($_POST['pwd'], $user->pass)) {
- my function :
- function checkpass($upass, $hashed) {
- list($hash, $pwd) = explode(':', $hashed);
- $check = password_verify($hash, $upass);
- die($pwd.' vs '.$check);
- return $check==$pwd;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement