Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [ArmyAirForces] Retrieve password w/ e-mail address

Quote Reply
Re: [ArmyAirForces] Retrieve password w/ e-mail address In reply to
I use MySql, not sure if that has anything to do with this code. What error do you get?

I am using clear text passwords. Some people use encrypted. This might only work for clear text passwords as coded.

For this mod, I installed the code in my post above and modified the lost_password_enter_username.html to input the e-mail instead of username:

Code:

10c10
< your password. It requires you to enter your username.
---
> your password. It requires you to enter your email.
36a37,39
> <%if error%>
> <%body_font%><font color=red><%error%><%/body_font%> <%body_font%>
> <a href="<%cgi_root_url%>/gforum.cgi?do=user_signup;">Click here if you need to register</a>
> <br><br><%/body_font%>
> <%endif%>
47,50c50
< If you have lost your password, <%site_title%> can generate a new temporary
< password for you to log in with. Note that after logging in the temporary
< password will be lost so you should change your password immediately upon
< logging in with the temporary password. The temporary password will be sent
---
> If you have lost your password, <%site_title%> can sent it to you. Your password will be sent
58c58
< Enter your username:
---
> Enter your email address:
62c62
< <input class="button" type="text" name="user_username">
---
> <input class="button" type="text" name="user_email">
67c67
< <input class="submit" type="submit" value="Send temporary password">
---
> <input class="submit" type="submit" value="Send password">

Also added two language vars:

'USER_WRONG_EMAIL'
=> '%s does not match an e-mail in our forum registry. Perhaps you have not registered before, or this is not the e-mail you registered with.'

'USER_EMAIL_BAD_SYNTAX' => 'You did not enter a valid email format.',

Hope this helps. When you start making changes you kind of have to troubleshoot as you go. It is common to make a typo, once you see the error, then make the change to fix it. Some people won't want to dabble in the programming. I always backup the original file before I change it. I also have a developement server setup on my local network so I don't break my live server when testing something new.


----------
Michael J. Challis - CRUZN8R - PT Cruiser Club - http://www.ptcruiserclub.org

http://www.ptcruiserclub.org/forum

Last edited by:

CRUZN8R: May 25, 2003, 11:00 PM
Subject Author Views Date
Thread A revisit: Lost Password request by email WhiteHat 8154 May 15, 2003, 3:40 PM
Thread Re: [WhiteHat] A revisit: I'll keep it short
WhiteHat 7976 May 16, 2003, 5:31 PM
Thread Re: [WhiteHat] A revisit: I'll keep it short
bretzke 7983 May 17, 2003, 5:44 AM
Thread Re: [bretzke] A revisit: I'll keep it short
hoefti 7907 May 23, 2003, 6:12 AM
Thread Re: [hoefti] A revisit: I'll keep it short
Paul 7919 May 23, 2003, 6:22 AM
Thread Re: [Paul] A revisit: I'll keep it short
hoefti 7907 May 23, 2003, 6:36 AM
Thread Retrieve password w/ e-mail address
ArmyAirForces 7913 May 25, 2003, 11:13 AM
Thread Re: [ArmyAirForces] Retrieve password w/ e-mail address
Jagerman 7892 May 25, 2003, 3:46 PM
Thread Re: [Jagerman] Retrieve password w/ e-mail address
ArmyAirForces 7872 May 25, 2003, 3:58 PM
Thread Re: [ArmyAirForces] Retrieve password w/ e-mail address
CRUZN8R 7880 May 25, 2003, 8:14 PM
Thread Re: [CRUZN8R] Retrieve password w/ e-mail address
ArmyAirForces 7845 May 25, 2003, 10:16 PM
Thread Re: [ArmyAirForces] Retrieve password w/ e-mail address
CRUZN8R 7895 May 25, 2003, 10:43 PM
Thread Re: [CRUZN8R] Retrieve password w/ e-mail address
ArmyAirForces 7862 May 26, 2003, 7:48 AM
Thread Re: [ArmyAirForces] Retrieve password w/ e-mail address
CRUZN8R 7858 May 26, 2003, 10:35 AM
Post Re: [CRUZN8R] Retrieve password w/ e-mail address
Jagerman 7855 May 26, 2003, 11:19 AM
Thread Re: [bretzke] A revisit: I'll keep it short
ellipsiiis 7825 May 26, 2003, 11:27 AM
Post Re: [ellipsiiis] A revisit: I'll keep it short
WhiteHat 7816 May 26, 2003, 8:14 PM