Thanks Webweave, but I now get 2 'undefined index' errors on the form
page when I try to submit. The one positive is that it doesn't
truncate my form values now, so it returns what I input.
The code I have:
login.ctp:
check('Message.auth')) $session->flash('auth');
echo $form->create('User
First you probably want the form name to be login.ctp, since that's
what you're trying to do.
My views/users/login.ctp looks like:
check('Message.auth')) $session->flash('auth');
echo $form->create('User', array('action' => 'login'));
echo $form->input('user_name');
echo $form->input
Thanks gearvOsh,
Adding that snippet to the controller caused an error, so I read
through the documentation link you sent through, and that has resolved
the errors. However, now, it's just not working. When I submit a
username and password, I just get redirected back to the form, with
the usern
You need to be using the User model.
Make sure this is in your controller: $uses = array('User');
Perhaps look at these two links also:
http://book.cakephp.org/view/171/Access-Control-Lists
http://book.cakephp.org/view/172/Authentication
--~--~-~--~~~---~--~~
You
Hi,
Following on from an earlier post, I'm receiving an error when trying
to log in to a basic password protected admin system. The error is
as follows:
Notice (8): Undefined index: User [APP\controllers
\users_controller.php, line 10]
Code
if(!empty($this->data)) {
/