[Catalyst] Login as another user ...

Kiffin Gish kiffin.gish at planet.nl
Mon Jan 18 11:21:53 GMT 2010


Doesn't $c->logout() already do that for you?

On Mon, 2010-01-18 at 12:08 +0100, Dami Laurent (PJ) wrote:
> 
> >-----Message d'origine-----
> >De : Kiffin Gish [mailto:kiffin.gish at planet.nl] 
> >Envoyé : lundi, 18. janvier 2010 11:34
> >À : The elegant MVC web framework
> >Objet : [Catalyst] Login as another user ...
> >
> >As system administrator who has root access to everything, I want to be
> >able to login as another user from my dashboard page.
> >
> >What's the best way to achieve this? I tried $c->authenticate without a
> >password, but this doesn't seem to work.
> >
> >-- 
> 
> If authentication is based on cookies, and if you have access to the cookie algorithm, then you could have a "change user" action (of course protected so that only admins can do it), and that action replaces the current authentication cookie by another one in name of somebody else.
> 
> cheers, Laurent D.
> 
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/


-- 
Kiffin Gish <kiffin.gish at planet.nl>
Gouda, The Netherlands




More information about the Catalyst mailing list