From 192e5934c4d09c1fd873ff3ba39b080254e50e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Turan=20Karatu=C4=9F?= Date: Tue, 13 Feb 2018 10:11:38 +0300 Subject: [PATCH] Bug fixed in csrf middleware --- App/Middlewares/Csrf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/Middlewares/Csrf.php b/App/Middlewares/Csrf.php index c52b380..9b1f9ed 100644 --- a/App/Middlewares/Csrf.php +++ b/App/Middlewares/Csrf.php @@ -9,7 +9,7 @@ class Csrf public function handle() { if (Session::has('titan_token')) { - if (input('csrf_token') == Session::get('titan_token')) { + if (request('csrf_token') == Session::get('titan_token')) { Session::delete('titan_token'); return true; } else {