Fix: Bad parameter type
This commit is contained in:
parent
d004d41d2f
commit
e5012a1670
@ -368,7 +368,7 @@ abstract class ActionsAdherentCardCommon
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
||||||
$login=dol_buildlogin($this->object->lastname, $this->object->firstname);
|
$login=dol_buildlogin($this->object->lastname, $this->object->firstname);
|
||||||
|
|
||||||
$generated_password=getRandomPassword('');
|
$generated_password=getRandomPassword(false);
|
||||||
$password=$generated_password;
|
$password=$generated_password;
|
||||||
|
|
||||||
// Create a form array
|
// Create a form array
|
||||||
|
|||||||
@ -825,7 +825,7 @@ class Adherent extends CommonObject
|
|||||||
if (! $password)
|
if (! $password)
|
||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
||||||
$password=getRandomPassword('');
|
$password=getRandomPassword(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cryptage mot de passe
|
// Cryptage mot de passe
|
||||||
|
|||||||
@ -812,7 +812,7 @@ else
|
|||||||
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED))
|
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED))
|
||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
||||||
$generated_password=getRandomPassword('');
|
$generated_password=getRandomPassword(false);
|
||||||
print '<tr><td><span class="fieldrequired">'.$langs->trans("Password").'</span></td><td>';
|
print '<tr><td><span class="fieldrequired">'.$langs->trans("Password").'</span></td><td>';
|
||||||
print '<input size="30" maxsize="32" type="text" name="password" value="'.$generated_password.'">';
|
print '<input size="30" maxsize="32" type="text" name="password" value="'.$generated_password.'">';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|||||||
@ -400,7 +400,7 @@ abstract class ActionsContactCardCommon
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
||||||
$login=dol_buildlogin($this->object->lastname, $this->object->firstname);
|
$login=dol_buildlogin($this->object->lastname, $this->object->firstname);
|
||||||
|
|
||||||
$generated_password=getRandomPassword('');
|
$generated_password=getRandomPassword(false);
|
||||||
$password=$generated_password;
|
$password=$generated_password;
|
||||||
|
|
||||||
// Create a form array
|
// Create a form array
|
||||||
|
|||||||
@ -843,7 +843,7 @@ else
|
|||||||
if (! $ldap_sid) // TODO ldap_sid ?
|
if (! $ldap_sid) // TODO ldap_sid ?
|
||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
||||||
$generated_password=getRandomPassword('');
|
$generated_password=getRandomPassword(false);
|
||||||
}
|
}
|
||||||
$password=$generated_password;
|
$password=$generated_password;
|
||||||
|
|
||||||
|
|||||||
@ -1356,7 +1356,7 @@ class User extends CommonObject
|
|||||||
// If new password not provided, we generate one
|
// If new password not provided, we generate one
|
||||||
if (! $password)
|
if (! $password)
|
||||||
{
|
{
|
||||||
$password=getRandomPassword('');
|
$password=getRandomPassword(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Crypte avec md5
|
// Crypte avec md5
|
||||||
|
|||||||
@ -748,7 +748,7 @@ if (($action == 'create') || ($action == 'adduserldap'))
|
|||||||
if (empty($ldap_sid)) // ldap_sid is for activedirectory
|
if (empty($ldap_sid)) // ldap_sid is for activedirectory
|
||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
||||||
$generated_password=getRandomPassword('');
|
$generated_password=getRandomPassword(false);
|
||||||
}
|
}
|
||||||
$password=$generated_password;
|
$password=$generated_password;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user