Fix CSRF token bug.

This commit is contained in:
Taylor Otwell 2011-11-03 09:19:23 -05:00
parent 66f48b3fbe
commit d0c3d65722
1 changed files with 2 additions and 2 deletions

View File

@ -41,9 +41,9 @@ public static function start(Driver $driver)
// Form class and the "csrf" filter to protect the application from
// cross-site request forgery attacks. The token is simply a long,
// random string which should be posted with each request.
$token = Str::random(40);
$csrf_token = Str::random(40);
static::$session = array('id' => Str::random(40), 'data' => compact('token'));
static::$session = array('id' => Str::random(40), 'data' => compact('csrf_token'));
}
}