MySQL Password function, more of a PHP realted question thou
Posted: Sun Jan 26, 2003 1:49 am
OK here's my problem of the day. I have passwords entered into a database and I'm encrytpting them with mysql's password function. Works fine. When a user logs in the password is checked. I have to use the password function again to verify the two passwords both of which are now encrypted are the same. Works no problem.
I ran into a problem though in my forgot password form. I have the user enter their email address and if the address exists in the database their password is sent to them. However it sends the encrypted password because I can not use the password function in PHP. Does anyone know of a way I can have the decrypted password sent to the user instead of having them change it each time they forget it? Let me know and thanks in advance? I love this place.
I ran into a problem though in my forgot password form. I have the user enter their email address and if the address exists in the database their password is sent to them. However it sends the encrypted password because I can not use the password function in PHP. Does anyone know of a way I can have the decrypted password sent to the user instead of having them change it each time they forget it? Let me know and thanks in advance? I love this place.