Browse Source

Use constant for CSRF token.

Taylor Otwell 13 years ago
parent
commit
8e5852b7eb
1 changed files with 3 additions and 1 deletions
  1. 3 1
      laravel/form.php

+ 3 - 1
laravel/form.php

@@ -1,5 +1,7 @@
 <?php namespace Laravel;
 
+use Laravel\Session\Payload as Session;
+
 class Form {
 
 	/**
@@ -153,7 +155,7 @@ class Form {
 	{
 		$token = IoC::core('session')->token();
 
-		return static::input('hidden', 'csrf_token', $token);
+		return static::input('hidden', Session::token, $token);
 	}
 
 	/**