Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. $username = $_POST['username'];
  2. $password= $_POST['username'];
  3.  
  4. > Get the row from the database for username = username
  5. > Hash $password with the 2nd argument as the hash from the database
  6. > if $password = our hashed result, then the password was correct
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement