Advertisement
gonzalezsylv

Untitled

Feb 28th, 2021
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. var_dump($_POST['pwd']);
  2. if ($user != false && checkpass($_POST['pwd'], $user->pass)) {
  3.  
  4. my function :
  5.  
  6. function checkpass($upass, $hashed) {
  7.  
  8. list($hash, $pwd) = explode(':', $hashed);
  9. $check = password_verify($hash, $upass);
  10. die($pwd.' vs '.$check);
  11. return $check==$pwd;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement