In my Login PHP file I have these
$passwordInput = password_hash($passInput, PASSWORD_BCRYPT);
$passwordVerify = password_verify($userInput, $passwordInput);
And in my Register PHP file I have this.
$passwordSign = password_hash($passSign, PASSWORD_BCRYPT);
Now, essentially I make it so it hashes the password and inserts itself into the database on signup. WHICH IT DOES.
However, it cannot verify it. Both results give 2 different hashes and I don't know what I'm possibly doing wrong. I also tried just making it hash the input again and checking the password_hash in the database but that didn't work..
What is the proper way of using these?
( Also, $passSign and $userInput are the input fields and it does get the username/password )