]> Dogcows Code - chaz/chatty/commitdiff
return from eval doesn't return function
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Thu, 20 Oct 2011 01:56:29 +0000 (19:56 -0600)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Thu, 20 Oct 2011 01:56:29 +0000 (19:56 -0600)
lib/Chatty/Controller/Root.pm

index f526d4152aa3e4e2a76e19d866604573fc96b737..3b7fa3ddbaeca90f5f118ff509bef2966fe612be 100644 (file)
@@ -75,9 +75,11 @@ sub login :Local :Args(0) {
                        $c->res->redirect($c->uri_for_action('index'));
                        return;
                }
+               else {
+                       $c->flash->{error} = "Log-in failed! Try again, I guess.";
+                       $c->res->redirect($c->uri_for_action('login'));
+               }
        };
-       $c->flash->{error} = "Log-in failed! Try again, I guess.";
-       $c->res->redirect($c->uri_for_action('login'));
 }
 
 =head2 logout
This page took 0.02034 seconds and 4 git commands to generate.