Clean up Form::token method.
This commit is contained in:
parent
9b785fd70f
commit
63ac87cc0f
|
@ -153,9 +153,7 @@ public static function close()
|
||||||
*/
|
*/
|
||||||
public static function token()
|
public static function token()
|
||||||
{
|
{
|
||||||
$token = IoC::core('session')->token();
|
return static::input('hidden', Session::csrf_token, IoC::core('session')->token());
|
||||||
|
|
||||||
return static::input('hidden', Session::csrf_token, $token);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue