aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/My.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-21 17:46:22 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-21 17:46:22 +0100
commit62887757a6b8a94047911a90b44e6bf12776b08d (patch)
tree7f6c951a177c64c2d784ceb4e5fc6422b41457de /perllib/FixMyStreet/App/Controller/My.pm
parentd7d612b07c9d34985bb18410bcff1425c3eb2626 (diff)
Implement redirect upon sign in to where the user came from; tidy up error display.
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;