Fix CSRF token bug.

This commit is contained in:
Taylor Otwell
2013-03-11 13:21:52 -05:00
parent 2a14998be9
commit 6f92ee8efd

View File

@@ -57,7 +57,7 @@ Route::filter('guest', function()
Route::filter('csrf', function()
{
if (Session::getToken() != Input::get('csrf_token'))
if (Session::getToken() != Input::get('_token'))
{
throw new Illuminate\Session\TokenMismatchException;
}