Skip to content

Commit

Permalink
Merge pull request #19 from Lemon-Framework/v2.x
Browse files Browse the repository at this point in the history
Fixed Bad request views
  • Loading branch information
tenmajkl authored Aug 5, 2021
2 parents 1f89201 + 18e5b92 commit ebde742
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Sessions/Csrf.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,8 @@ static function check()
static function getToken()
{
if (isset($_SESSION["csrf_token"]))
{
return $_SESSION["csrf_token"];
}
else
{
Response::raise(400);
exit();
}
return "";
}
}
?>

0 comments on commit ebde742

Please sign in to comment.