you might be looking for sth I call qLogins http://www.dereuromark.de/2012/02/08/qlogin-quicklogins-fur-cakephp/
I use passwords that can be made valid for a single request, log the user in directly (either by link or by form) Am Freitag, 30. November 2012 01:09:07 UTC+1 schrieb cricket: > > I'm not sure that I follow all of that but if you want to manually log > a user in you can do it by passing the User.id: > > $this->Auth->login($user_id); > > Where $user_id is the User.id, or primary key of the row in the database. > > On Thu, Nov 29, 2012 at 8:43 AM, Jorge Guerra > <[email protected]<javascript:>> > wrote: > > Hi, I am a new member in this group and now I am developing a website > and > > I've got a trouble and I reckon I need a little of help for one task. > > > > I've got problems for creating a custom login with a temporal password, > I > > need to create a new password which it is temporal for accesing once and > > after that this password will be delete. > > > > Now I am working working at the method login for generating the session. > The > > original method it is > > > http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#identifying-users-and-logging-them-in > > > > > I added a elseif comparing the data with the temporal password but I do > not > > know how I can generating this session when the username and the > password > > it's the same according the database. > > > > That's the problem how could I generating the session of a user manually > > > > -- > > Like Us on FaceBook https://www.facebook.com/CakePHP > > Find us on Twitter http://twitter.com/CakePHP > > > > --- > > You received this message because you are subscribed to the Google > Groups > > "CakePHP" group. > > To post to this group, send email to [email protected]<javascript:>. > > > To unsubscribe from this group, send email to > > [email protected] <javascript:>. > > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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]. Visit this group at http://groups.google.com/group/cake-php?hl=en.
