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 <jorguerra@gmail.com> 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 cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com.
> 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 cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Thursday, November 29, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment