Ok, that didn't give me any errors!

So what are your settings for the Auth component in the AppController?

And are you using any Javascript? If yes, then try to remove it and
test the login again!

Enjoy,
   John

On Jun 11, 11:18 pm, Alexandre Brasil
<alexandrepernambuc...@gmail.com> wrote:
> Hi John,
>
> Thanks for your reply:
>
> Because I'm new on cake, I just tried do exactally as followed cake
> tutorial (simple ACL...).
>
> So here's my login.ctp
>
> <div class="users form">
> <?php
> if ($session->check('Message.auth')) $session->flash('auth');
> echo $form->create('User', array('url' => array('controller' =>
> 'users', 'action' =>'login')));
> ?>
> <fieldset>
> <legend><?php __('Login');?></legend>
> <?php
> echo $form->input('User.username');
> echo $form->input('User.password');
> ?>
> </fieldset>
> <?php echo $form->end('Login');?>
> </div>
>
> My users_controllers.php, I think that I use only html and form
> helpers. Login & logout methods are the same as show on tutorial:
>
> class UsersController extends AppController {
>
>   var $name = 'Users';
>   var $helpers = array('Html', 'Form');
>   var $paginate = array('limit' => 10,  'order'=>array
> ('User.id'=>'desc'));
>
>   function login() {
>     //Auth Magic
>   }
>
>   function logout() {
>     $this->Session->setFlash('Sucessful logout, bye');
>     $this->redirect($this->Auth->logout());
>
>   }
>
> //and so on...
>
> Regards
> Alexandre
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to