6
Problem fixed, Please add to bug fixes (or modify what i've done below to 'correct programming syntax' if I've done a bodgy work around)
There is a problem with the template for the email that is being sent out;
here is lostpassword1.tpl for 2.2.3
[size=xx-small]
Hello {X_UNAME},
A web user from {IP} has just requested a new password for your account at {SITENAME}.
You can get your new password by clicking on the link below:
{NEWPWD_LINK}
If you didn't ask for this, don't worry. Just delete this Email.
-----------
{SITENAME} ({SITEURL})
webmaster
{ADMINMAIL}
[/size]here is the email delivered
[size=xx-small]
Hello Dean Collins,
A web user from 68.174.172.170 has just requested a new password for your account at AussieNYmeetup.net.
You can get your new password by clicking on the link below:
/lostpass.php?email=dean@collins.net.pr&code=98064
If you didn't ask for this, don't worry. Just delete this Email.
-----------
AussieNYmeetup.net (/)
webmaster
dean@collins.net.pr
[/size]So the two mistakes are that it should have site url and then newpwd_link
the second one is that my site thinks the {site url} is just a "/"
So I made the following changes
[size=xx-small]
lostpass1.tpl
changed to suit lost password link problems
In place of "{NEWPWD_LINK}"
added "http://www.{SITENAME}{NEWPWD_LINK}"
[/size]Now my lostpass1.tpl looks like
[size=xx-small]
Hello {X_UNAME},
A web user from {IP} has just requested a new password for your account at {SITENAME}.
You can get your new password by clicking on the link below:
http://www.{SITENAME}{NEWPWD_LINK}
If you didn't ask for this, don't worry. Just delete this Email.
-----------
{SITENAME}
webmaster
{ADMINMAIL}
[/size]and the email sent out looks like
[size=xx-small]
Hello Dean Collins,
A web user from 68.174.172.170 has just requested a new password for your account at AussieNYmeetup.net.
You can get your new password by clicking on the link below:
http://www.AussieNYmeetup.net/lostpass.php?email=dean@collins.net.pr&code=98064
If you didn't ask for this, don't worry. Just delete this Email.
-----------
AussieNYmeetup.net
webmaster
dean@collins.net.pr
[/size]I also modified lostpass2.tpl file as well
1) for user education about how to change password in "Extended Profiles"
2) to provide url for easy login
[size=xx-small]
Hello {X_UNAME},
A web user from {IP} has just requested that password be sent.
Here are your login details at {SITENAME}.
Username: {LOGINNAME}
New Password: {NEWPWD}
You can change it in the "Extended Profiles" section after you login athttp://www.{SITENAME}
If you didn't ask for this, don't worry. You are seeing this message, not 'them'. If this was an error, we are really sorry but please login with your new password.
-----------
{SITENAME}
webmaster
{ADMINMAIL}
[/size]If there is something wrong with my suggestion can you let me know as this is my first ever open source bug fix :)
Cheers,
Dean
My Xoops site
www.aussienymeetup.net