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';
|
||||
$login=dol_buildlogin($this->object->lastname, $this->object->firstname);
|
||||
|
||||
$generated_password=getRandomPassword('');
|
||||
$generated_password=getRandomPassword(false);
|
||||
$password=$generated_password;
|
||||
|
||||
// Create a form array
|
||||
|
||||
@ -825,7 +825,7 @@ class Adherent extends CommonObject
|
||||
if (! $password)
|
||||
{
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
||||
$password=getRandomPassword('');
|
||||
$password=getRandomPassword(false);
|
||||
}
|
||||
|
||||
// Cryptage mot de passe
|
||||
|
||||
@ -812,7 +812,7 @@ else
|
||||
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED))
|
||||
{
|
||||
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 '<input size="30" maxsize="32" type="text" name="password" value="'.$generated_password.'">';
|
||||
print '</td></tr>';
|
||||
|
||||
@ -400,7 +400,7 @@ abstract class ActionsContactCardCommon
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
||||
$login=dol_buildlogin($this->object->lastname, $this->object->firstname);
|
||||
|
||||
$generated_password=getRandomPassword('');
|
||||
$generated_password=getRandomPassword(false);
|
||||
$password=$generated_password;
|
||||
|
||||
// Create a form array
|
||||
|
||||
@ -749,7 +749,7 @@ else
|
||||
$doleditor = new DolEditor('note_public', $object->note_public, '', 80, 'dolibarr_notes', 'In', 0, false, true, ROWS_3, 70);
|
||||
print $doleditor->Create(1);
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
// Note Private
|
||||
print '<tr><td valign="top">'.$langs->trans("NotePrivate").'</td><td colspan="3">';
|
||||
$doleditor = new DolEditor('note_private', $object->note_private, '', 80, 'dolibarr_notes', 'In', 0, false, true, ROWS_3, 70);
|
||||
@ -843,7 +843,7 @@ else
|
||||
if (! $ldap_sid) // TODO ldap_sid ?
|
||||
{
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
||||
$generated_password=getRandomPassword('');
|
||||
$generated_password=getRandomPassword(false);
|
||||
}
|
||||
$password=$generated_password;
|
||||
|
||||
@ -971,7 +971,7 @@ else
|
||||
print '<tr><td valign="top">'.$langs->trans("NotePublic").'</td><td colspan="3">';
|
||||
print nl2br($object->note_public);
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
// Note Private
|
||||
print '<tr><td valign="top">'.$langs->trans("NotePrivate").'</td><td colspan="3">';
|
||||
print nl2br($object->note_private);
|
||||
@ -1067,9 +1067,9 @@ else
|
||||
print '<a class="butActionDelete" href="'.$_SERVER['PHP_SELF'].'?action=disable&id='.$object->id.'">'.$langs->trans("DisableUser").'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
print "</div><br>";
|
||||
|
||||
|
||||
print load_fiche_titre($langs->trans("TasksHistoryForThisContact"),'','');
|
||||
|
||||
print show_actions_todo($conf,$langs,$db,$objsoc,$object);
|
||||
|
||||
@ -1356,7 +1356,7 @@ class User extends CommonObject
|
||||
// If new password not provided, we generate one
|
||||
if (! $password)
|
||||
{
|
||||
$password=getRandomPassword('');
|
||||
$password=getRandomPassword(false);
|
||||
}
|
||||
|
||||
// Crypte avec md5
|
||||
|
||||
@ -748,7 +748,7 @@ if (($action == 'create') || ($action == 'adduserldap'))
|
||||
if (empty($ldap_sid)) // ldap_sid is for activedirectory
|
||||
{
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
||||
$generated_password=getRandomPassword('');
|
||||
$generated_password=getRandomPassword(false);
|
||||
}
|
||||
$password=$generated_password;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user