From: Charles McGarvey Date: Thu, 20 Oct 2011 01:56:29 +0000 (-0600) Subject: return from eval doesn't return function X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=65447d848567b9383f01ab73d8d7eb42b9d8844d;p=chaz%2Fchatty return from eval doesn't return function --- diff --git a/lib/Chatty/Controller/Root.pm b/lib/Chatty/Controller/Root.pm index f526d41..3b7fa3d 100644 --- a/lib/Chatty/Controller/Root.pm +++ b/lib/Chatty/Controller/Root.pm @@ -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