If you rename the model name in your registration form, to
'loginUser', the data you will get would be data['loginUser']
['username'], etc.
You just need to map that to the User model after receiving the data.
AFAIK, you don't have to pass a model name to a form.

On Apr 13, 11:21 pm, Ed Propsner <[email protected]> wrote:
> At one point during the test site I'm  working on I end up with two forms on
> the same page that both use the same model.
>
> One form is for registration and the other is to log in ... both forms
> contain a username and password field.
>
> Having these two forms contain the same field names is causing a few issues
> and renaming the fields on either form is causing a different set of
> issues.
>
> Is there a way for me to have login() use fields with names other than
> username and password ?
>
> A tried a number of solutions none of which worked the way I expected.
>
> - Ed

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to