Continuing to look into this, I'm examining my login method in my
controller.

 public function login() {
    if ($this -> request -> is('post')) { // IF THE REQUEST IS A POST
THAT MEANS A FORM WAS SUBMITTED
      if ($this-> Auth-> login($this -> request -> data)) {
        $this->Session->setFlash('login successful.');
        return $this->redirect($this->Auth->redirect());
      } else {
        $this->Session->setFlash(__('Passcode not found.'), 'default',
array(), 'auth');
      }
    }
  }

Using $this->Auth->login() without passing the request data results in
a failed login, I'm not clear why.

The form to log in with is a single field (passcode) and submit
button.  As this is the data structure I'm seeing with my $user and
$this->Auth->user(), is it possible that since the passcode was all
that was passed through the form to the login action, that is also the
only bit of data saved out to $this->Auth->user()?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to