Created
December 23, 2020 13:43
-
-
Save bernard-ng/2277e59c5afbb70c95e466abe818fd70 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$middleware = new CsrfMiddleware($_SESSION, 200); | |
$app->pipe($middleware); | |
// Generate input | |
$input = "<input type='hidden' name='{$middleware->getFormKey()}' value='{$middleware->generateToken()}'/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment