Forum Moderators: coopster
Generally, don't do it.
>> coding techniques
Send a URL with a unique ID to the email they registered to allow them to reset the password. Have this expire in s short amount of time. The whole premise here is that if they have access to the email account they registered with your site, then it's legit. If you want you can validate with other credentials, as well, such as a security question, or a validation of their phone number, etc...