diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-01-26 14:34:47 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-01-26 14:34:47 +0000 |
commit | ac59f93b2228f5ff77ca7b7aff6fc3be54d360cd (patch) | |
tree | 3b6e7fb937526aeb05b11d14cfcff0b30e531e73 /perllib/FixMyStreet | |
parent | 251a0e77a25e5efb45aedca27a141f006dbddbde (diff) |
Improve some error pages.
Use design of auth/token in generic error, 404, and token server error
pages, and use the same error for too old/ token not found errors.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Tokens.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Tokens.pm b/perllib/FixMyStreet/App/Controller/Tokens.pm index c10904f8f..b1d60fe32 100644 --- a/perllib/FixMyStreet/App/Controller/Tokens.pm +++ b/perllib/FixMyStreet/App/Controller/Tokens.pm @@ -324,11 +324,7 @@ sub load_auth_token : Private { } ); - unless ( $token ) { - $c->stash->{template} = 'errors/generic.html'; - $c->stash->{message} = _("I'm afraid we couldn't validate that token. If you've copied the URL from an email, please check that you copied it exactly.\n"); - $c->detach; - } + $c->detach('token_too_old') unless $token; return $token; } |