refactoring and bug fixes.

This commit is contained in:
Taylor Otwell
2011-09-29 21:22:48 -05:00
parent 2eeb636198
commit 14186a00e0
22 changed files with 192 additions and 132 deletions

View File

@@ -56,13 +56,13 @@ return array(
'auth' => function()
{
return ( ! Auth::check()) ? Redirect::to('login') : null;
if ( ! Auth::check()) return Redirect::to('login');
},
'csrf' => function()
{
return (Input::get('csrf_token') !== Form::raw_token()) ? Response::error('500') : null;
if (Input::get('csrf_token') !== Form::raw_token()) return Response::error('500');
},
);