FIX : if(!method_exists(dol_loginfunction))

This commit is contained in:
gauthier 2019-01-17 14:49:04 +01:00
parent 05dc40b6b9
commit d997309bcb

View File

@ -126,6 +126,7 @@ function checkLoginPassEntity($usertotest,$passwordtotest,$entitytotest,$authmod
* @param Societe $mysoc Company object
* @return void
*/
if (! function_exists('dol_loginfunction')) {
function dol_loginfunction($langs,$conf,$mysoc)
{
global $dolibarr_main_demo,$db;
@ -300,6 +301,7 @@ function dol_loginfunction($langs,$conf,$mysoc)
$_SESSION["dol_loginmesg"] = '';
}
}
/**
* Fonction pour initialiser un salt pour la fonction crypt.