Nevermind, I'd already done thought about this. Please ignore:

    if ( !$c->user_exists ) {
        $c->log->debug('***User not found, forwarding to /login')
          if $c->debug();

        # $c->uri_for will return the URL for the current action namespace,
        # so, if you request /customers/faxes, we'll get /customers/faxes
        # that way we don't trust $c->req->uri, even though looking at the code
        # Catalyst it's OK
        $c->log->debug( 'Saving previous URI: ' . $c->uri_for() )
          if $c->debug();
        $c->flash->{redirect_after_login} = $c->uri_for();
        $c->response->redirect( $c->uri_for('/login') );
        $c->detach();
    }

_______________________________________________
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/

Reply via email to