Welcome Guest, Not a member yet? Register   Sign In
Password hashing
#1

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??
Reply
#2

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.
Reply
#3

(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
Reply
#4

Use ion auth as Loginsystem. It is easy to use.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB