create-prisma-php-app 4.2.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -242,7 +242,7 @@ class Auth
|
|
|
242
242
|
$token = $nonce . '.' . $signature;
|
|
243
243
|
|
|
244
244
|
if (!headers_sent()) {
|
|
245
|
-
setcookie('
|
|
245
|
+
setcookie('prisma_php_csrf', $token, [
|
|
246
246
|
'expires' => time() + 3600, // 1 hour validity
|
|
247
247
|
'path' => '/',
|
|
248
248
|
'secure' => true,
|
|
@@ -251,7 +251,7 @@ class Auth
|
|
|
251
251
|
]);
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
$_COOKIE['
|
|
254
|
+
$_COOKIE['prisma_php_csrf'] = $token;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
/**
|