mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-07-10 13:37:40 +02:00
Log generic error message on token verify fail
This commit is contained in:
parent
2a2b429e75
commit
e55d24db66
@ -63,7 +63,7 @@ class CSRF
|
||||
|
||||
if (\RaspAP\Tokens\CSRF::validateRequest()) {
|
||||
if (!\RaspAP\Tokens\CSRF::verify()) {
|
||||
error_log("CSRF verification failed. Token: " . ($_POST['csrf_token'] ?? 'not provided'));
|
||||
error_log("CSRF verification failed: Token missing or invalid");
|
||||
\RaspAP\Tokens\CSRF::handleInvalidToken();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user