haha! brilliant!

So much easier.

On May 16, 10:26 am, Jeremy Burns | Class Outfit
<jeremybu...@classoutfit.com> wrote:
> It's very easy to spoof a user:
>
> $user = $this->User->findByUsername($username);
>
> if ($user):
>         if ($this->Auth->login($user)):
>                 $this->redirect(array('action' => 'view', 'admin' => false));
>         endif;
> endif;
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>
> On 16 May 2011, at 10:22, designv...@gmail.com wrote:
>
>
>
>
>
>
>
> > If you are using roles then you could just have an option to pick a
> > different role when you login and save that into the session instead
> > of the one stored with your default admin record.
>
> > On May 16, 10:19 am, heohni <heidi.anselstet...@consultingteam.de>
> > wrote:
> >> Hi,
>
> >> I would like tow rite a function which allows me as admin to login as
> >> user using their username and their password.
> >> Is something like this possible? I have seen such a function is some
> >> CMS and I find it very useful as admin to check out the users view,
> >> without the knowing their passwords.
>
> >> Any ideas on that how to do best?
>
> >> Thanks
> >> Heidi
>
> > --
> > Our newest site for the community: CakePHP Video 
> > Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to