Oh, for Pete's sake! I'd opened another site's AppController to
compare, then forgot about it. THIS site's $autoRedirect was, in fact,
set to true.

Sorry for the noise (again). Hopefully, this will at least be helpful
to someone else debugging a similar problem. To wit: "Are you sure
you're not just an idiot?"

~sigh~

On Wed, Sep 23, 2009 at 2:59 PM, brian <[email protected]> wrote:
> Also, in MembersController:
>
> function beforeFilter()
> {
>        parent::beforeFilter();
>        $this->Auth->allowedActions = array('forgot_password', 'add');
> }
>
> On Wed, Sep 23, 2009 at 2:44 PM, brian <[email protected]> wrote:
>> I need to check if a Member's expiration is coming up and, if so, send
>> a flash to that effect. However, for some reason, Cake is skipping
>> over the logic even though I have $this->Auth->autoRedirect = false.
>> Am I missing something?
>>
>>
>> AppController:
>> function beforeFilter()
>> {
>>        $this->Auth->fields = array(
>>                'username' => 'email',
>>                'password' => 'password'
>>        );
>>        $this->Auth->loginError = 'No matching user found.';
>>        $this->Auth->loginAction = array(
>>                'controller' => 'users',
>>                'action' => 'login'
>>        );
>>        $this->Auth->loginRedirect = array(
>>                'controller' => 'pages',
>>                'action' => 'display', 'home'
>>        );
>>        $this->Auth->autoRedirect = false;
>>        $this->Auth->logoutRedirect = array(
>>                'controller' => 'users',
>>                'action' => 'login'
>>        );
>> }
>>
>> MembersController:
>>
>> public function login()
>> {
>>        $this->layout = 'plain';
>>
>>        if (!empty($this->data))
>>        {
>>                die(debug('login'));
>>
>>                ...
>>        }
>> }
>>
>> I never see the debug; it simply redirects to the home page.
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to