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
This commit is contained in:
2016-09-01 09:32:25 +00:00
parent a04d3a4f4a
commit 0ffebcda0b

View File

@@ -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;