I have an OSCommerce 2.2-MS2 website and need the following modification made to the login process:
If customer requests new password, instead of automatically generating new password, install the code to send user an email with a link to reset their password
In [url removed, login to view] when focus lost to the email field, do the following
1) immediately validate (ajax) if an account already exists with the entered email in the database -
if NO : validate email and display a TICK or CROSS next to email
if YES: use new scripts installed above to send customer email to reset their password and display message
"Please check your e-mail for instructions on how to setup your password. The instructions contain a link that is valid only for 24 hours or until your password has been updated."
if it isn't possible to do this, move the email address to a separate page and submit instead.
Lastly, please put the word "understood" in your response so I know you have read the spec