Hi Sean,

it doesn't work the way you posted it, except for me. But I assume it
could also be something with my login view, so could you please post
an example of a working view for this?

Atm I'm doing the following:

// /app/views/users/login.ctp

<h1><?php __('login'); ?></h1>

<?php
  echo $form->create('User', array('action' => 'login'));
  echo $form->input('username');
  echo $form->input('password');
  echo $form->submit(__('do_login', true));
  echo $form->end();
?>

// end

But when submitting the form, it redirects me back to the login, pre-
filling the password field with 32 chars (assume it's the md5 hash,
but why?).

Thanks in advance,

Arne

On Nov 8, 9:04 pm, SeanW <[EMAIL PROTECTED]> wrote:
> On Nov 7, 9:07 pm, Arne-Kolja Bachstein <[EMAIL PROTECTED]> wrote:
>
>
>
> > My goal is to implement the authentication basics directly into /app/
> > app_controller.php rather than the users controller, as I think it
>
> I posted something about this recently, where authentication is done
> in the main app_controller with default behaviours, and controllers
> can fine tune it.
>
> http://ertw.com/blog/2007/11/04/a-simple-authentication-system-with-c...
>
> It uses controller based authorization (which again can have a global
> policy at the app_controller level, and be overridden at the
> controller level)
>
> Sean


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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