reset password and send email

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

creat326
Posts: 87
Joined: 13 Jun 2010, 09:50

reset password and send email

Postby creat326 » 21 Mar 2011, 21:26

Hi there

I can't find a way to do this. I guess it has to do with cryptoutils but I haven't been able to figure it out.

What I'm trying to do is let the user to reset his/her password and get it by email. Because people, sometimes forget their passwords.

Since passwords are encrypted, I have no idea how to handle it. How do I encrypt the password so I have it already encrypted on the db and then send the original by email out?
ext0sus
Posts: 71
Joined: 17 Oct 2010, 16:14

Postby ext0sus » 22 Mar 2011, 18:40

IIRC, passwords are MD5 hashed (one-way encryption) so you can't really recover their original password.

This is why most password recovery emails send you a new password, rather than your own.

You could always generate a new random password when they request a password reset. Send them the password in an email, them hash it and put it in the database.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 149 guests