I think you can do $this->Auth->login($id);
Regards,
- Dardo Sordi.
On Wed, Jun 4, 2008 at 7:16 PM, mcjustin <[EMAIL PROTECTED]> wrote:
>
> Is it possible to programmatically switch which user the Auth lib has
> logged in, without knowing the password of the second user?
>
> For example, "userAdminJoe" is logged in. I want him to be able to
> click a link which will switch him to be treated as user
> "userPeonJack". I want to do this at the Auth level, because I want
> him to be treated as "userPeonJack" by the Auth and Acl libs. If he
> wanted to be treated as "userAdminJoe" again, he'd need to log-in
> again.
>
> I've looked around a bit, but can't seem to find an answer to this...
>
> Thanks!
> >
>
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---