Thursday, May 12, 2011

Re: Custom login

On May 12, 2011, at 23:08, Kristofer wrote:

> I have a User model and the database contains the username (stored as
> an email address). I would like to override the login so that it
> preforms an external REST call to validate the password with an
> external system (an external billing system). So the User model
> doesn't have a password stored in the database, and the login() method
> will need to be overridden to validate the username and password.
>
> My problem is that I can't seem to find where I manually tell the
> AuthComponent that the user is logged in and that I have manually
> validated the password.
>
> How do I go about doing this? Or do I need to override the Auth
> component?

Does this help?

http://book.cakephp.org/view/1255/AuthComponent-Methods#login-1261

I'm not sure it's the best way but it's what I found in the book.


--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate