diff --git a/libs/csrf/csrfprotector.php b/libs/csrf/csrfprotector.php index 6e220fb..9d2792e 100755 --- a/libs/csrf/csrfprotector.php +++ b/libs/csrf/csrfprotector.php @@ -3,9 +3,7 @@ include __DIR__ ."/csrfpDefaultLogger.php"; //// Logger class include __DIR__ ."/csrfpAction.php"; //// Actions enumerator - if (!defined('__CSRF_PROTECTOR__')) { - self::refreshToken(); //refresh token for successful validation define('__CSRF_PROTECTOR__', true); // to avoid multiple declaration errors // name of HTTP POST variable for authentication diff --git a/test/csrfprotector_test.php b/test/csrfprotector_test.php index 07ec134..6c864cb 100644 --- a/test/csrfprotector_test.php +++ b/test/csrfprotector_test.php @@ -1,7 +1,7 @@ = 7 && !class_exists('\PHPUnit_Framework_TestCase', true)) { class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase'); diff --git a/test/csrfprotector_test_customlogger.php b/test/csrfprotector_test_customlogger.php index 0ac6e1b..e9080bf 100644 --- a/test/csrfprotector_test_customlogger.php +++ b/test/csrfprotector_test_customlogger.php @@ -1,7 +1,7 @@ = 7 && !class_exists('\PHPUnit_Framework_TestCase', true)) { class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');