Componette

Componette

adambisek

adambisek / secured-links

CSRF protection for Nette Framework presenters' signals.

download-cloud-line composer require adambisek/secured-links

Nextras\SecuredLinks

Build Status Coverage Status Stable version

SecuredLinksTrait creates secured signal links. PHP 5.4+ ONLY

forked from nextras/secured-links

Installation

The best way to install is using Composer:

$ composer require adambisek/secured-links

Usage of SecuredLinksTrait

abstract class BasePrenseter extends Nette\Application\UI\Presenter
{
	use Nextras\Application\UI\SecuredLinksPresenterTrait;
}


class MyPresenter extends BasePresenter
{
	/**
	 * @secured
	 */
	public function handleDelete($id)
	{
	}
}


abstract class BaseControl extends Nette\Application\UI\Control
{
	use Nextras\Application\UI\SecuredLinksControlTrait;
}


class MyControl extends BaseControl
{
	/**
	 * @secured
	 */
	public function handleDelete($id)
	{
	}
}

No release at this moment. Try to create first one.

bar-chart-fill

Statistics

download-cloud-fill
26
star-fill
1
bug-fill
0
flashlight-fill
5.1y
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=5.4)
Componette Componette felix@nette.org