Handle the case, the user logs out twice

This was throwing an exception because of a missing target
agranig/1_0_subfix
Gerhard Jungwirth 13 years ago committed by Andreas Granig
parent 18f1057722
commit 057301b0d8

@ -40,6 +40,8 @@ sub auto :Private {
if($c->request->method eq 'GET') {
if($c->request->uri !~ /\/logout$/) {
$target = $c->request->uri;
} else {
$target = $c->uri_for("/dashboard");
}
} else {
$target = $c->request->headers->referer;

Loading…
Cancel
Save