Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts: htdocs/core/lib/security2.lib.php
This commit is contained in:
commit
d4daf8b9ce
@ -501,13 +501,10 @@ function getRandomPassword($generic = false, $replaceambiguouschars = null, $len
|
|||||||
{
|
{
|
||||||
$numbers = "ABCDEF";
|
$numbers = "ABCDEF";
|
||||||
$max = strlen($numbers) - 1;
|
$max = strlen($numbers) - 1;
|
||||||
if (function_exists('random_int')) // Cryptographic random
|
if (function_exists('random_int')) { // Cryptographic random
|
||||||
{
|
|
||||||
$tmp = random_int(0, $max);
|
$tmp = random_int(0, $max);
|
||||||
$generated_password = str_replace($replaceambiguouschars, $numbers[$tmp], $generated_password);
|
$generated_password = str_replace($replaceambiguouschars, $numbers[$tmp], $generated_password);
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
$tmp = mt_rand(0, $max);
|
$tmp = mt_rand(0, $max);
|
||||||
$generated_password = str_replace($replaceambiguouschars, $numbers[$tmp], $generated_password);
|
$generated_password = str_replace($replaceambiguouschars, $numbers[$tmp], $generated_password);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -482,7 +482,6 @@ if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED)) {
|
|||||||
print '<tr><td>' . $extrafields->attributes[$elementtype]['label'][$key];
|
print '<tr><td>' . $extrafields->attributes[$elementtype]['label'][$key];
|
||||||
if ($array_query['options_' . $key . '_cnct'] != '' || (is_array($array_query['options_' . $key . '_cnct']) && count($array_query['options_' . $key . '_cnct']) > 0)) {
|
if ($array_query['options_' . $key . '_cnct'] != '' || (is_array($array_query['options_' . $key . '_cnct']) && count($array_query['options_' . $key . '_cnct']) > 0)) {
|
||||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||||
|
|
||||||
}
|
}
|
||||||
print '</td><td>';
|
print '</td><td>';
|
||||||
if (($extrafields->attributes[$elementtype]['type'][$key] == 'varchar') || ($extrafields->attributes[$elementtype]['type'][$key] == 'text')) {
|
if (($extrafields->attributes[$elementtype]['type'][$key] == 'varchar') || ($extrafields->attributes[$elementtype]['type'][$key] == 'text')) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user