This is what my form looks like:

<?php echo $form->create('User',array('action' => 'login')); ?>
<fieldset class="form">
<?php echo $form->error('User.username'); ?>
<?php echo $form->input('User.username',
array('label'=>'Username') ); ?>
<?php echo $form->error('User.passwd'); ?>
<?php echo $form->input('User.passwd', array('label'=>'Password') ); ?
>
<?php echo $form->submit('Submit', array('class' => 'submit')); ?>
</fieldset>
</form>

I don't name my field to be password, because that causes problems
with MySQL, so I name it passwd instead.  Maybe that is your problem?

And your login() function in the UsersController is empty, right?

On Apr 9, 11:48 am, Antonio Labriola <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
>    Hopefully someone could have a quick answer for me.   I am trying
> to use the auth component for authorization in my webapp.  I have
> activated the auth component and app_controller.php, and i have
> created a users_controller,user model, and users table in the
> database, all to the default specs laid out in cakephp.
>
>     I just want this simple solution for now as proof of concept, but
> i am having one issue.  When trying to login on the form i created
> using the form helper, it does not seem to be passing the password
> back to the login action of the users_controller.  It has the
> username, but not the password.  And i have double checked the naming
> convention on the password field on the login form, and it seems to be
> correct.
>
>      Has anyone had anything similar to them?  I didnt think it was
> going to be this difficult to get the simple authorization up and
> running.  Any help would be appreciated, thanks.
>
>  Tony
--~--~---------~--~----~------------~-------~--~----~
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