I am basing my bcrypt creating off of this site I have made some changes to it though so this is my version of the code : My version of bcrypt
I have started working on my login form and I have come the general understanding that to check a users credentials you must :
recreate the bcrypt
compare what the $_POST['password'] that is being submitted to the password you have stored in the database.
return a row count so if a row is returned where the password that you recreated matches the already stored password then the row count must == 1
What I am confused about :
- How do I let the checklogin form know what the bcrypt function was to begin with? do I have to include the register script? - or do I have to copy and paste the bcrypt function?
I have tried to implement this on my user authentication and for some reason it is not working for me.
This is my code hopfully some one sees a problem that i dont.
Any help would be greatly appreciated
$_POST['username'];and$_POST['password']set before use i think you have turn off the error or you are excepting user always enter both .. and if not .. showing the error messageundefined index :bla on line blais good..