1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2025-07-10 20:17:40 +02:00

Log generic error message on token verify fail

This commit is contained in:
billz 2025-05-14 00:57:19 -07:00
parent 2a2b429e75
commit e55d24db66

View File

@ -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();
}
}