Skip to content
Snippets Groups Projects
Commit 6f6a292c authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: la clŽ de cryptage sera crŽŽ automatiquement et sera donc obligatoire,...

Fix: la clŽ de cryptage sera crŽŽ automatiquement et sera donc obligatoire, ceci permet aussi de ne pas tenir compte du cookie si on n'utilise pas le module multi-societe
parent 4b35e70e
No related branches found
No related tags found
No related merge requests found
......@@ -222,13 +222,12 @@ if (! defined('NOREQUIREDB'))
else
{
$entityCookieName = 'DOLENTITYID_'.md5($_SERVER["SERVER_NAME"].$_SERVER["DOCUMENT_ROOT"]);
if (isset($_COOKIE[$entityCookieName])) // Just for view specific login page
if (isset($_COOKIE[$entityCookieName]) && ! empty($conf->file->cookie_cryptkey)) // Just for view specific login page
{
include_once(DOL_DOCUMENT_ROOT."/core/cookie.class.php");
$lastuser = '';
$lastentity = '';
$cryptkey = ( ! empty($conf->file->cookie_cryptkey) ? $conf->file->cookie_cryptkey : '' );
$entityCookie = new DolCookie($conf->file->cookie_cryptkey);
$cookieValue = $entityCookie->_getCookie($entityCookieName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment