diff options
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/My.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/My.pm | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/perllib/FixMyStreet/App/Controller/My.pm b/perllib/FixMyStreet/App/Controller/My.pm index 1189fe901..79d5c5681 100644 --- a/perllib/FixMyStreet/App/Controller/My.pm +++ b/perllib/FixMyStreet/App/Controller/My.pm @@ -22,13 +22,7 @@ Catalyst Controller. sub my : Path : Args(0) { my ( $self, $c ) = @_; - - # FIXME - handle not being logged in more elegantly - unless ( $c->user ) { - $c->res->redirect( $c->uri_for('/auth') ); - $c->detach; - } - + $c->detach( '/auth/redirect' ) unless $c->user; } __PACKAGE__->meta->make_immutable; |