Jump to content

Forgot Password Feature


fri3ndly

Recommended Posts

From what i understand you can converst md5 back to its orginal form. Thats the whole point of it. To encrypted the information so no one can understand it.

 

When you enter you password to login you encrypt it. Then you check the database to see if the encryptions match. Therefore if anyone gets into your database they will still non the wiser.

You can't as far as i'm aware. That's the whole point in encrypting passwords, so that if someone gains access to your database, they can't steal the information. If you could the script required would probably be a fairly hefty one.

 

Better option is to get the email to reset their password to a temporary randomly generated string, and update the database to that effect, then get them to change their password straight away to something they'll remember.

Thats what I thought....

 

So how would this feature work then?

 

At the moment it looks up the users e-mail address and returns their details, along with a hashed password.

 

The hashed password is always the same, it doesnt vary each time therefore I see no reason why it couldnt be reversed, but if not how do other PHP systems (eg. Joomla) achieve this?

 

Thanks, Simon

You can't as far as i'm aware. That's the whole point in encrypting passwords, so that if someone gains access to your database, they can't steal the information. If you could the script required would probably be a fairly hefty one.

 

Better option is to get the email to reset their password to a temporary randomly generated string, and update the database to that effect, then get them to change their password straight away to something they'll remember.

 

Ah thats a great idea, I hadn't thought of that. Thank you!

 

 

So now..... How do I develop a 'temporary randomly generated string'? :D

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.