aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/My.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-21 17:56:32 +0100
committerStruan Donald <struan@exo.org.uk>2011-06-21 17:56:32 +0100
commit8e78cc8816f2f1a91660a2908f0c4b47712b55b0 (patch)
treec098f0fe504bd7f646e8c6aaea8647a527e72861 /perllib/FixMyStreet/App/Controller/My.pm
parentddde474e6a1dfb1591e8cfe06dc05c8be3312853 (diff)
parent62887757a6b8a94047911a90b44e6bf12776b08d (diff)
Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet into new_statuses
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/My.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/My.pm8
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;