xoops forums

Nick_James

Friend of XOOPS
Posted on: 2013/9/4 21:41
Nick_James
Nick_James (Show more)
Friend of XOOPS
Posts: 359
Since: 2006/10/14
#1

Password recovery error

Customer complained that the password recovery did not work.

On testing it, I found that the link in the first email was not functional.

The link was acting as an email link and not a htm link. If I cut and paste the entire line, then the code works properly. However, if I click on the link, it tries to send an email. The red parts of the line are the parts of the line that should be included in the link.

example
Hello xxxxx,

A web user from xx.xxx.xxx.x has just requested a new password for your profile at xxxxxx
.
You can get your new password by clicking on the link below:


http://mysite.com/modules/profile/lostpass.php?email=xxxxxx@xxxx.xxx&code=0c4b9

If you didn't ask for this, don't worry. Just delete this Email.

-----------------------------------------------------------------
end example

Mamba

Moderator
Posted on: 2013/9/4 22:05
Mamba
Mamba (Show more)
Moderator
Posts: 10799
Since: 2004/4/23
#2

Re: Password recovery error

I think, it depends on his email client, and his settings.

I just tested on MS Outlook and on-line in Gmail, and it both cases it was fine.

In Outlook, I even changed between:

- Plain Text
- HTML
- Rich Text

and in all cases the link was interpreted correctly.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Nick_James

Friend of XOOPS
Posted on: 2013/9/4 22:39
Nick_James
Nick_James (Show more)
Friend of XOOPS
Posts: 359
Since: 2006/10/14
#3

Re: Password recovery error

Good point.

Same email message worked appropriately on my iPhone and on my iPad.

Nick_James

Friend of XOOPS
Posted on: 2013/9/4 22:44
Nick_James
Nick_James (Show more)
Friend of XOOPS
Posts: 359
Since: 2006/10/14
#4

Re: Password recovery error

Don't know what the customer was getting their email on.

I was using web mail by GoDaddy.

Owned by: Special Domain Services, LLC
Address: https//xxx.secureserver.net/webmail.php
Type: text/html
Render Mode: Standard compliance mode
Encoding: UTF-8

Nick_James

Friend of XOOPS
Posted on: 2013/9/4 22:48
Nick_James
Nick_James (Show more)
Friend of XOOPS
Posts: 359
Since: 2006/10/14
#5

Re: Password recovery error

Forwarded same message to Google mail. Works fine in online Googlemail also.

Nick_James

Friend of XOOPS
Posted on: 2013/9/4 22:52
Nick_James
Nick_James (Show more)
Friend of XOOPS
Posts: 359
Since: 2006/10/14
#6

Re: Password recovery error

Notice how the XOOPS site has the same error, but a slightly different cutout.

The text in blue, from email on, was done by the site.

Lets try a cut and paste without the color codes in the line.

email=xxxxxx@xxxx.xxx&code=0c4b9" title="http://mysite.com/modules/profile/lostpass.php?email=xxxxxx@xxxx.xxx&code=0c4b9" rel="external">http://mysite.com/modules/profile/los ... xxxxx@xxxx.xxx&code=0c4b9

Nick_James

Friend of XOOPS
Posted on: 2013/9/4 22:53
Nick_James
Nick_James (Show more)
Friend of XOOPS
Posts: 359
Since: 2006/10/14
#7

Re: Password recovery error

eeek. what happened.

Nick_James

Friend of XOOPS
Posted on: 2013/9/4 22:54
Nick_James
Nick_James (Show more)
Friend of XOOPS
Posts: 359
Since: 2006/10/14
#8

Re: Password recovery error

Try it as plain text instead of DHTML with XCode

email=xxxxxx@xxxx.xxx&code=0c4b9" title="http://mysite.com/modules/profile/lostpass.php?email=xxxxxx@xxxx.xxx&code=0c4b9" rel="external">http://mysite.com/modules/profile/los ... xxxxx@xxxx.xxx&code=0c4b9

Nick_James

Friend of XOOPS
Posted on: 2013/9/4 22:55
Nick_James
Nick_James (Show more)
Friend of XOOPS
Posts: 359
Since: 2006/10/14
#9

Re: Password recovery error

Second time, turning off the Enable Xoops Code and smileys

email=xxxxxx@xxxx.xxx&code=0c4b9" title="http://mysite.com/modules/profile/lostpass.php?email=xxxxxx@xxxx.xxx&code=0c4b9" rel="external">http://mysite.com/modules/profile/los ... xxxxx@xxxx.xxx&code=0c4b9

Nick_James

Friend of XOOPS
Posted on: 2013/9/4 22:56
Nick_James
Nick_James (Show more)
Friend of XOOPS
Posts: 359
Since: 2006/10/14
#10

Re: Password recovery error

Lets put quotes about what I am pasting:

"email=xxxxxx@xxxx.xxx&code=0c4b9"" title="http://mysite.com/modules/profile/lostpass.php?email=xxxxxx@xxxx.xxx&code=0c4b9"" rel="external">http://mysite.com/modules/profile/los ... xxxx.xxx&code=0c4b9"