Hi and thanks again for the help. I've got it figured out, does
anyone see any potential problems with this approach?
public function login() {
if ($this -> request -> is('post')) {
$user = $this -> User -> findByPasscode($this -> request ->
data["User"]["passcode"]); // READ THE USER FROM DB
if ($this -> Auth -> login($user)) { // LOG IN USING THE $USER
VAR PULLED FROM THE DB
$this -> Session -> setFlash('login successful.');
debug($this->Auth->user()); // NOW HAS ALL THE USER DATA
INSTEAD OF JUST THE PASSCODE
return $this -> redirect($this -> Auth -> redirect());
} else {
$this -> Session -> setFlash(__('Passcode not found.'),
'default', array(), 'auth');
}
}
}
--
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