ee community,
Using Solspace User:
Would anyone be able to help me out or point me down the path of changing a members forgotten username or password by submitting their email and having the results emailed back to them. And in the case of Password a regeneration link to develop a new password.
Any help or nudge in the right direction would help.
Thanx, Chris
Jamie,
Thank you for your interest and yes I did make a similar post in the Solspace forums as well.
It’s not that I’m determined to use “User” for this part of my site but I have yet to find or get a response from any other location and I thought this direction might help.
If I did this without User could EE handle it?
Thanx, Chris
I’m not quite sure I’m following you… but basically there is a form the user goes to and they enter their email address. That form triggers a function in EE that generates a link and emails it to the email address in question. If the person doesn’t click the link their login/password stays the same. If the person does then another function is triggered which randomly generates a new password and emails that password to the user.
The functions in question start at line 1072 of the mod.member.php file…
Am I making any sense? I’m not quite sure what you are asking for still.
The system does not know what the person’s password actually is (its encrypted) so it can’t just email them their real password. It has to generate a new one and send that after which it promptly forgets what their password again. This is assuredly by design and for security reasons.
Jamie
Jamie,
Thank you for your patience in this. After some duh moments I got the forget password thing figured out and was amazed it was that simple.
Now I need to see if it is as easy for the user to retrieve his/her username by entering an email address and having the correct username sent back.
Any Thoughts, Chris
Glad it made sense.
Well, you will note in the email address sent for the password reset. The person’s login is used in the email.
The template for that email is editable here:
Admin -> Specialty Templates -> Email Notification Templates -> Forgotten Password Instructions
You could change it read something like this:
Hello,
Your Login Is: {name}
Reset Your Password (Your password will be automatically reset, and a new password will be emailed to you): {reset_url}
If you do not wish to reset your password, ignore this message. It will expire in 24 hours.
{site_name} {site_url}
Then you could open the lang.member.php file and change this:
"mbr_forgotten_password" =>
"Forgotten Password",
To:
"mbr_forgotten_password" =>
"Forgotten Password/Username",
So that its a little more obvious that the form serves both purposes.
Jamie
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.