From 65447d848567b9383f01ab73d8d7eb42b9d8844d Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Wed, 19 Oct 2011 19:56:29 -0600 Subject: [PATCH 1/1] return from eval doesn't return function --- lib/Chatty/Controller/Root.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.43.0