#5057: loginRedirect is overridden after a successfully login call
-----------------------------------+----------------------------------------
Reporter: alessandro.daducci | Owner:
Type: Bug | Status: reopened
Priority: Medium | Milestone: 1.2.x.x
Component: Auth | Version: RC2
Severity: Normal | Resolution:
Keywords: | Php_version: n/a
Cake_version: |
-----------------------------------+----------------------------------------
Changes (by Pconfig):
* status: closed => reopened
* resolution: needmoreinfo =>
Comment:
Well the problem with this is that it isn't really a bug. What he means is
that if the url you got bounced from is still in your session somehwere
you got redirected to there and not to 'loginRedirect'. In some situations
this might be a problem.
Let me illustrate:
You make your users register but they get a mail with an activation code.
They click on the link in the mail to activate their account. When the
account is activated, they get redirected to the login page as they can
login now. But what happens when the user logs in? Right.. he gets
redirected to the activation page again.
(I don't know if it tries to save external url's aswell, if that's the
case you might even get bigger problems with people that get bounced back
to their hotmail or something like that)
You can clean this up by putting this in your beforeFilter:
$this->Session->delete('Auth.redirect');
With this you remove the redirect rule and you will get redirected to
loginRedirect. Now this isn't a clean solution, i guess we need structural
solution for this.
--
Ticket URL: <https://trac.cakephp.org/ticket/5057#comment:2>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---