Upgrade to 3.7.0
This commit is contained in:
5
kirby/src/Cms/Auth.php
Normal file → Executable file
5
kirby/src/Cms/Auth.php
Normal file → Executable file
@@ -194,8 +194,9 @@ class Auth
|
||||
*/
|
||||
public function csrfFromSession(): string
|
||||
{
|
||||
$isDev = $this->kirby->option('panel.dev', false) !== false;
|
||||
return $this->kirby->option('api.csrf', $isDev ? 'dev' : csrf());
|
||||
$isDev = $this->kirby->option('panel.dev', false) !== false;
|
||||
$fallback = $isDev ? 'dev' : $this->kirby->csrf();
|
||||
return $this->kirby->option('api.csrf', $fallback);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user