fuel/fuel/core/classes/form/instance.php
public function add_csrf()
	{
		$this->add(\Config::get('security.csrf_token_key', 'fuel_csrf_token'), 'CSRF Token')
			->set_type('hidden')
			->set_value(\Security::fetch_token())
			->add_rule(array('Security', 'check_token'));

		return $this;
	}
public function add_csrf()
	{
		$this->add(\Config::get('security.csrf_token_key', 'fuel_csrf_token'), 'CSRF Token')
			->set_type('hidden')
			->set_value(\Security::fetch_token())
			->add_rule(array('Security', 'check_token'));

		return $this;
	}
public function add_csrf ( ) { $ this -> add ( \ Config :: get ( 'security.csrf_token_key' , 'fuel_csrf_token' ) , 'CSRF Token' ) -> set_type ( 'hidden' ) -> set_value ( \ Security :: fetch_token ( ) ) -> add_rule ( array ( 'Security' , 'check_token' ) ) ; return $ this ; }
Add a CSRF token and a validation rule to check it
Add a CSRF token and a validation rule to check it