I think I have it working now - it seems that the initial 'register'
function had maybe caused the problem, so the password encrypted in
the database was wrong.  Not sure how i did that, but it's working
now... thanks for the help.



On Dec 9, 2:09 pm, WhyNotSmile <[email protected]> wrote:
> Thanks for that.
>
> I've now added in $form->end, but it hasn't helped.
>
> I didn't know about $this->Form - I'll read up on it for future sites.
>
> In AppController I have:
>
> <?php
> class AppController extends Controller
> {
>   var $uses = array();
>   var $helpers = array('Html', 'Form', 'Javascript', 'Paginator',
> 'Session');
>   var $components = array('Auth', 'Session');
>
>         function beforeFilter() {
>                 Security::setHash('md5');
>                 $this->Auth->loginAction = array('controller' => 'users', 
> 'action'
> => 'login');
>                 $this->Auth->loginRedirect = array('controller' => 'users',
> 'action' => 'loginAfter');
>                 $this->Auth->loginError = 'No email and password was found 
> with that
> combination.';
>                 $this->Auth->authError = "Please log in to view this
> page.";
>                 $this->Auth->logoutRedirect = '/';
>         }
>
> }?>
>
> On Dec 9, 1:05 am, cricket <[email protected]> wrote:
>
> > On Wed, Dec 8, 2010 at 4:13 PM, WhyNotSmile <[email protected]> 
> > wrote:
> > > Yes, I've done both of those.
>
> > I was going to say that $form->input('password' should be
> > $form->password('password' but then realised that I do the same. Cake
> > figures it out, I suppose.
>
> > However, you're not closing the form properly. From the API:
>
> > --snip--
> > Closes an HTML form, cleans up values set by FormHelper::create(), and
> > writes hidden input fields where appropriate.
>
> > If $options is set a form submit button will be created. Options can
> > be either a string or an array.
> > --snip--
>
> > Perhaps there's some magic missing because of that. You're creating
> > the submit manually, so you'd call it without any params:
>
> > echo $form->end();
>
> > Also, you should get in the habit of using $this->Form as the old
> > style is deprecated.
>
> > BTW, what do you have in AppController::beforeFilter()?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to