#5655: isAuthorized() method of AuthComponet is not called at loginpage
------------------------+---------------------------------------------------
    Reporter:  maya     |          Type:  Bug   
      Status:  new      |      Priority:  Medium
   Milestone:  1.2.x.x  |     Component:  Auth  
     Version:  RC3      |      Severity:  Normal
    Keywords:           |   Php_version:  n/a   
Cake_version:           |  
------------------------+---------------------------------------------------
 I read a document of Authentication.

 http://book.cakephp.org/view/396/authorize

 I understood as that isAuthorized() is called after authentication was
 successful.

 But I met different result.

 
https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/controller/components/auth.php#L311

 {{{
 311             if ($loginAction == $url) {
 (snip)
 326                 if ($this->login($data)) {
 327                     if ($this->autoRedirect) {
 328                         $controller->redirect($this->redirect(), null,
 true);
 329                     }
 330                     return true;
 }}}
 It doesn't reach to here.
 {{{
 359             switch ($type) {
 360                 case 'controller':
 361                     $this->object =& $controller;
 362                 break;
 (snip)
 394             if ($this->isAuthorized($type)) {
 395                 return true;
 396             }
 }}}

 My understanding is fault?

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5655>
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
-~----------~----~----~----~------~----~------~--~---

  • [CakePHP : The Rapid Dev... CakePHP : The Rapid Development Framework for PHP

Reply via email to