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:[email protected]] > >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: [email protected] > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/[email protected]/ > Dev site: http://dev.catalyst.perl.org/
-- Kiffin Gish <[email protected]> Gouda, The Netherlands _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
