From 673ef76020df0d7000ec2c66f33f779a31327399 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Wed, 29 Sep 2010 11:01:48 +0000 Subject: [PATCH] fix redirect after login --- src/lib/Hydra/Controller/Root.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index d937a5f1..259263e8 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -39,7 +39,7 @@ sub login :Local { my $username = $c->request->params->{username} || ""; my $password = $c->request->params->{password} || ""; - if(! $username && ! defined $c->flash->{afterLogin}) { + if($username eq "" && $password eq "" && ! defined $c->flash->{afterLogin}) { my $baseurl = $c->uri_for('/'); my $refurl = $c->request->referer; $c->flash->{afterLogin} = $refurl if $refurl =~ m/^($baseurl)/ ;