Hi,

I use MAMP on mac os lion and cakephp 2.2.3. and i have problem with Auth 
only on local.

I use UsersController like this :

class UsersController extends AppController {
>     // on ajoute les vues qui seront autorisées sans mot de passe
>     public function beforeFilter() {
>         parent::beforeFilter();
>         $this->Auth->allow('add', 'logout');
>     }
>     public function login() {
>         if ($this->request->is('post')) {
>             $this->Session->read();
>             if ($this->Auth->login()) {
>                 $this->redirect($this->Auth->redirect());
>             } else {
>                 $this->Session->setFlash(__('Invalid username or password, 
> try again'));
>             }
>         }
>     }


If i put $this->Session->read(); then the Session is update, if no there 
are nothing happen.

Can you help me please ?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to