Correctly redirect to the referring page when logging in

This commit is contained in:
Eelco Dolstra
2013-02-21 14:38:18 +01:00
parent 26fa9ea0ea
commit 767cab6cd2
3 changed files with 18 additions and 16 deletions

View File

@ -97,7 +97,6 @@ sub notFound {
sub requireLogin {
my ($c) = @_;
$c->flash->{afterLogin} = $c->request->uri;
$c->response->redirect($c->uri_for('/login'));
$c->detach; # doesn't return
}