#5961: Custom route elements can't be used in loginAction
---------------------------+------------------------------------------------
Reporter: farhadi | Owner: mark_story
Type: Bug | Status: reopened
Priority: Low | Milestone: 1.2.x.x
Component: Auth | Version: 1.2 Final
Severity: Minor | Resolution:
Keywords: auth | Php_version: PHP 5
Cake_version: 1.2.0.7962 |
---------------------------+------------------------------------------------
Changes (by harking):
* status: closed => reopened
* resolution: fixed =>
Comment:
I'm having a regression due to this patch. When trying to log in it is
always failing.
Works fine in 1.2.0. It looks like my routes cause the login url logic to
fail. Seems like the Router::normalize($url) call on line 283 does not
work correctly with the routes I've setup.
To replicate, set {{{$this->Auth->loginAction =
array('controller'=>'people','action'=>'login');}}} and use the following
route:
{{{
Router::connect('/', array('controller'=>'people','action'=>'login'));
}}}
On login, it will always fail because at line 294 login processing only
occurs if {{{$loginAction == $url}}}
--
Ticket URL: <https://trac.cakephp.org/ticket/5961#comment:9>
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
-~----------~----~----~----~------~----~------~--~---