custom DA lost_password_email.txt

bjorn

Verified User
Joined
Sep 17, 2014
Messages
17
[SOLVED] custom DA lost_password_email.txt

Hi All,

I customized my DA 'login.html', 'lost_password.html' and 'lost_password_email.txt'.
After a lost password request, the user recieves the lost password e-mail.

This is my lost_password_email.txt :
HTML:
|*if action="code"|
|?SUBJECT=ENJOY-IT Webhosting beheer, uw wachtwoord is aangepast.|
Hallo,

Uw wachtwoord is aangepast, bewaar deze op een veilige plek.

Uw nieuwe wachtwoord is:

|passwd|


Deze e-mail is automatisch aangemaakt, beantwoord deze e-mail niet. Indien u contact wilt met een ENJOY-IT medewerker, stuur dan een e-mail naar [email protected].

Met vriendelijke groet,

ENJOY-IT Entertainment
http://www.enjoyitentertainment.com

|*else|
|?SUBJECT=ENJOY-IT Webhosting beheer, aanvraag nieuw wachtwoord.|
Hallo,

ENJOY-IT heeft een wachtwoord herstel aanvraag ontvangen voor de gebruikersnaam: |username|.

Uw bevestiging code is: |code|

Om een nieuw wachtwoord aan te vragen kunt u op de onderstaande link klikken. Volg de instructies, u ontvangt hierna het nieuwe wachtwoord per e-mail: 
|http|://cp.enjoyitentertainment.com/CMD_LOST_PASSWORD?code=|code|&username=|username|


Indien u dit wachtwoord herstel verzoek niet heeft ingediend, klik dan a.u.b. op de onderstaande link. Een ENJOY-IT medewerker zal het dan onderzoeken en indien nodig verdere actie ondernemen.
|http|://cp.enjoyitentertainment.com/CMD_LOST_PASSWORD?action=report&code=|code|


Deze e-mail is automatisch aangemaakt, beantwoord deze e-mail niet. Indien u contact wilt met een ENJOY-IT medewerker, stuur dan een e-mail naar [email protected].

Met vriendelijke groet,

ENJOY-IT Entertainment
http://www.enjoyitentertainment.com

|*endif|

When i go to the link, i'm asked for an username and code. When I use the '|code|' from the email, it returns: 'Invalid code' ...?

I have no idea why this isn't working? My guess is that the |code| from the e-mail is only the url code, so what do I have to use in the lost_password_email.txt for the correct security code?

Thanks!
Bjorn
 
Last edited:
Hello Bjorn,

From what I see in original template:

Code:
|http|://|host|:|port|/CMD_LOST_PASSWORD?code=|code|&username=|username|




If you did not initate this password change, please click the following to report it to an administrator:


|http|://|host|:|port|/CMD_LOST_PASSWORD?action=report&code=|code|

you use it correctly. The issue might be how you proxy those requests to directadmin.
So verify code is working when accessing directadmin through :2222 port.
Then run directadmin in debug mode and see what might be wrong there.
 
Solved

Hi Alex,

Thanks for your reply! But I made a stupid mistake customizing the lost_password.html

After checking another server with default DA login I found it.

For the security code input I used:
Code:
<input id="user_pass" class="input" size="20" type=password name=password>

It has to be:
Code:
<input id="user_pass" class="input" size="20" type=text name=code value="|code|">

Notice the: 'type=text name=code' for correct processing and 'value="|code|"' so that the user doesn't have to insert anything. Therefore no need for the e-mail template to show the code..

Again, thanks for looking into this.

My custom DA login now: http://cp.enjoyitentertainment.com ;)

Regards,
Bjorn
 
Last edited:
Back
Top