authparams : do not set the cookie in session, if it doesn't exists. No need to set a cookie on user side if it is not needed
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@6000 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -69,7 +69,7 @@ class authparams
|
||||
// {{{
|
||||
{
|
||||
if (!isset ($_SESSION) || session_id () === "")
|
||||
session_start ();
|
||||
throw new \Exception ("No session previously enabled", 403);
|
||||
if (!isset ($_SESSION["domframework"]["auth"]["email"]) ||
|
||||
!isset ($_SESSION["domframework"]["auth"]["password"]))
|
||||
throw new \Exception ("No previous email in session", 403);
|
||||
|
||||
Reference in New Issue
Block a user