Password hashing |
I am using password_hash to hash password before storing it to the database. And using password_verify() to verify password while login process. I am not able to login to the system. I am using password_hash() while registering user and changing password of the user.
After entering login details it just display me same login page without any validation errors. What can I use to solve this problem??
We would need to see your code to help you troubleshoot the problem. Also, make sure you're storing the hash in a large enough database field. Generally, you can get away with using a varchar(60), but it is recommended that you use a varchar(255). If you're using less than 60, you may already have found your problem.
(08-18-2015, 06:23 AM)mwhitney Wrote: We would need to see your code to help you troubleshoot the problem. Also, make sure you're storing the hash in a large enough database field. Generally, you can get away with using a varchar(60), but it is recommended that you use a varchar(255). If you're using less than 60, you may already have found your problem. Thanks for reply, I am using varchar(255). I will check my code once again
|
Welcome Guest, Not a member yet? Register Sign In |