diff --git a/app/controllers/SessionController.php b/app/controllers/SessionController.php index 68e4e3e..526992b 100644 --- a/app/controllers/SessionController.php +++ b/app/controllers/SessionController.php @@ -24,7 +24,9 @@ class SessionController extends \BaseController $remember = \Input::get('remember'); - if ($validator->fails()) { + if ($validator->fails()) + { + return Redirect::to('login') ->withErrors($validator) ->withInput(Input::except('password')); @@ -44,6 +46,7 @@ class SessionController extends \BaseController } else { + Session::flash('message', 'You entered the wrong email or password. Try again!'); return \Redirect::to('login'); } @@ -56,6 +59,7 @@ class SessionController extends \BaseController } else { + Session::flash('message', 'You entered the wrong email or password. Try again!'); return \Redirect::to('login'); }