various refactoring and tweaks.

This commit is contained in:
Taylor Otwell
2011-10-20 21:44:18 -05:00
parent df9130dafa
commit af36cb3d5a
22 changed files with 140 additions and 110 deletions

View File

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