Jump to content

Compare password to post value


Harmster
 Share

Recommended Posts

Hey,

I've searched for a while but with no results and I am anxious to get this done.

I want to create a user password change script that changes the password to do this the user needs to fill in her/his old password. No problem but since PW does hash all passwords i cant just compare a hashed to a plain text password now can I.

So I looked throught the wire folder and I couldn't really find something.

How can I hash the password so I can compare it?

Many thanks!

Link to comment
Share on other sites

Not a real answer. But if a user knows his login/password, let him log-in, after that he can reset the password to what ever he wants. So no need to know the password.

Problem is that that isn't really secure. If I would use a computer with an account still logged in and I could just change the password like that the actual owned of that account wouldn't be happy.

That's the reason why many of the sites out there ask you for your old password before you can change it.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...