diff --git a/htdocs/adherents/canvas/actions_adherentcard_common.class.php b/htdocs/adherents/canvas/actions_adherentcard_common.class.php
index 9f93f0f1bda..c88257b8de3 100644
--- a/htdocs/adherents/canvas/actions_adherentcard_common.class.php
+++ b/htdocs/adherents/canvas/actions_adherentcard_common.class.php
@@ -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
diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php
index 5f26d1106f7..67016eae3e2 100644
--- a/htdocs/adherents/class/adherent.class.php
+++ b/htdocs/adherents/class/adherent.class.php
@@ -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
diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php
index 90e0abcfd4b..59791b5cad9 100644
--- a/htdocs/adherents/fiche.php
+++ b/htdocs/adherents/fiche.php
@@ -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 '
| '.$langs->trans("Password").' | ';
print '';
print ' |
';
diff --git a/htdocs/contact/canvas/actions_contactcard_common.class.php b/htdocs/contact/canvas/actions_contactcard_common.class.php
index 0b65d2b2db8..b95f9113180 100644
--- a/htdocs/contact/canvas/actions_contactcard_common.class.php
+++ b/htdocs/contact/canvas/actions_contactcard_common.class.php
@@ -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
diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php
index 7724806f5c2..98874ba4804 100644
--- a/htdocs/contact/fiche.php
+++ b/htdocs/contact/fiche.php
@@ -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 '';
-
+
// Note Private
print '| '.$langs->trans("NotePrivate").' | ';
$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 ' |
| '.$langs->trans("NotePublic").' | ';
print nl2br($object->note_public);
print ' |
';
-
+
// Note Private
print '| '.$langs->trans("NotePrivate").' | ';
print nl2br($object->note_private);
@@ -1067,9 +1067,9 @@ else
print ''.$langs->trans("DisableUser").'';
}
}
-
+
print " ";
-
+
print load_fiche_titre($langs->trans("TasksHistoryForThisContact"),'','');
print show_actions_todo($conf,$langs,$db,$objsoc,$object);
diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php
index 3241f6dbc12..2ff681b8fe4 100644
--- a/htdocs/user/class/user.class.php
+++ b/htdocs/user/class/user.class.php
@@ -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
diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php
index 0ae409ca8fe..ba851ea3840 100644
--- a/htdocs/user/fiche.php
+++ b/htdocs/user/fiche.php
@@ -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;
|