Show an error message when the CSRF check fails.
This commit is contained in:
parent
fdd838f2a0
commit
765cdb68db
|
@ -22,7 +22,7 @@ if(strtolower($_SERVER["REQUEST_METHOD"]) == "post")
|
|||
}
|
||||
catch (CsrfException $e)
|
||||
{
|
||||
die();
|
||||
die("Invalid CSRF token. Perhaps your session has expired? <a href='/'>Click here</a> to log in again.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue