CakePHP: email validate action doesn't work when clicking on the email link

Posted by bakerjr on Stack Overflow See other posts from Stack Overflow or by bakerjr
Published on 2010-01-20T07:47:46Z Indexed on 2010/05/11 8:04 UTC
Read the original article Hit count: 354

Filed under:
|

Hi, We've created the email validation part of our site. We built the site using CakePHP BTW.

The problem is that it doesn't work when we click on the link in the email. The email is sent as plain text.

A weird thing is that when we paste the link on the address bar, it works. Also when clicking on the link using Gmail and desktop email clients, it works as well. Other email providers doesn't work.

EDIT:

Additional info:

Example link for the validation: http://localhost/users/validate/validatecodeblah12c023

When it's working it should login the user and redirect to the user dashboard.

It goes to the front page when it's not working (see description above).

Additional info 2:

I did compare the results using Live HTTP headers and I found out that the only time it doesn't push through (goes to the login page for some reason) is when there's a 'Referrer: h ttp://mail.yahooblahblah...' Gmail for some reason doesn't have a 'Referer' line in it's headers.

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about email