mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-01 03:39:20 +02:00
Fix token generate
This commit is contained in:
parent
08074d8d4f
commit
0127a4f417
@ -142,7 +142,7 @@ $settings->load();
|
|||||||
|
|
||||||
// csrf protection
|
// csrf protection
|
||||||
$token = getSession('csrf_token');
|
$token = getSession('csrf_token');
|
||||||
if (!isset($token)) {
|
if (!isset($token) || !$token) {
|
||||||
CsrfToken::generate();
|
CsrfToken::generate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user