various refactorings.

This commit is contained in:
Taylor Otwell
2011-11-02 21:27:43 -05:00
parent 128984facb
commit 9caf239f6b
29 changed files with 275 additions and 150 deletions

View File

@@ -50,19 +50,19 @@ return array(
'after' => function($response)
{
if (Config::get('session.driver') !== '') Input::flash();
Input::flash();
},
'auth' => function()
{
if ( ! Auth::check()) return Redirect::to_login();
if (Auth::guest()) return Redirect::to_login();
},
'csrf' => function()
{
if (Input::get('csrf_token') !== Form::raw_token()) return Response::error('500');
if (Request::forged()) return Response::error('500');
},
);