Forgot user name password
« on: February 22, 2014, 05:37:40 PM »
How can I create a button so that a user can retrieve its username and password by submitting his email? I want to create a link that sends the user to a page where he can enter his email and then once he presses submit it will send an email with the username and password.

*

Vink

  • *****
  • 329
    • NedDate.nl
Re: Forgot user name password
« Reply #1 on: February 22, 2014, 06:36:11 PM »
Hi

That is not possible in osDate..
When a user signup to your site the password is MD5 encrypted and saved in the database.
MD5 is designed for security reasons and is a one way conversion of the password.. php can not
read it back.. thats why in osDate the forgott password/login page makes a new password and sent it to
the member who lost it.
Regards
Vink
osDate 2.19a | PHP 5.3.8 | MySQL  5.0.91

Re: Forgot user name password
« Reply #2 on: February 22, 2014, 08:33:37 PM »
But what's the code to trigger an email to the user based on his email?

*

Vink

  • *****
  • 329
    • NedDate.nl
Re: Forgot user name password
« Reply #3 on: February 22, 2014, 09:11:50 PM »
See your getforgotpass.php
The code compairs the given emailaddress with the database and triggers the email sending.
Regards
Vink
osDate 2.19a | PHP 5.3.8 | MySQL  5.0.91

Re: Forgot user name password
« Reply #4 on: February 23, 2014, 12:18:02 AM »
oh nice did not know there was a page already, thanks!