From 0ffebcda0bc30b1310339daf5c67a423d0f54699 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 1 Sep 2016 09:32:25 +0000 Subject: [PATCH] authentication : manage correctely the routes (no not add a slash not needed) git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3013 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- authentication.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentication.php b/authentication.php index af5536f..0bfe467 100644 --- a/authentication.php +++ b/authentication.php @@ -319,13 +319,13 @@ class authentication $authObj->logout (); }); - $this->route->get ("authentication({url})?", function ($url) use ($authObj) + $this->route->get ("authentication(/{url})?", function ($url) use ($authObj) { $authObj->pageHTML ($url); exit; }); - $this->route->post ("authentication({url})?", function ($url) use ($authObj) + $this->route->post ("authentication(/{url})?", function ($url) use ($authObj) { $authObj->verifAuthLoginPage ($url); exit;