Aha! It looks like a sneaky, evil, wrong, mean, horrid way to switch-user in the middle of a session is to
$c->session->{__user}{id} = $new_id_here; # since "id" = PK But that's undoubtedly bad form of the worst kind. What's the canonical non-sneaky above-board friendly golden way to do this? On Thu, Jul 8, 2010 at 12:27 PM, w...@serensoft.com <w...@serensoft.com>wrote: > Hmm: Become-user? > > Is there a clean way to provide a means for sys-admins to "become user" to > track down issues? It's much easier to diagnose when seeing what the user's > seeing directly, when we look at it through our own eyes -- as opposed to > relying on vague user-style descriptions ("unrecognized date format" vs > "doesn't work"). > > use Catalyst qw/ > ConfigLoader > Static::Simple > Session > Session::Store::DBIC > Session::State::Cookie > Authentication > Authentication::Credential::Password > Authorization::Roles > Authorization::ACL > /; > > > > -- > will trillich > "I think it would be worse to expect nothing than to be disappointed." -- > Anne (with an 'e') Shirley > -- -- will trillich -- http://faq.serensoft.com/ "The truth is that many people set rules to keep from making decisions." -- Mike Krzyzewski
_______________________________________________ List: Catalyst@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/