diff --git a/htdocs/admin/security.php b/htdocs/admin/security.php index 9627164f534..38cd2d12c1b 100644 --- a/htdocs/admin/security.php +++ b/htdocs/admin/security.php @@ -127,7 +127,7 @@ if ($action == 'activate_encryptdbpassconf') if ($result > 0) { sleep(3); // Don't know why but we need to wait file is completely saved before making the reload. Even with flush and clearstatcache, we need to wait. - + // database value not required //dolibarr_set_const($db, "MAIN_DATABASE_PWD_CONFIG_ENCRYPTED", "1"); header("Location: security.php"); @@ -135,7 +135,7 @@ if ($action == 'activate_encryptdbpassconf') } else { - setEventMessages($langs->trans('InstrucToEncodePass',dol_encode($dolibarr_main_db_pass)), null, 'warnings'); + setEventMessages($langs->trans('InstrucToEncodePass',dol_encode($dolibarr_main_db_pass)), null, 'warnings'); } } else if ($action == 'disable_encryptdbpassconf') @@ -144,7 +144,7 @@ else if ($action == 'disable_encryptdbpassconf') if ($result > 0) { sleep(3); // Don't know why but we need to wait file is completely saved before making the reload. Even with flush and clearstatcache, we need to wait. - + // database value not required //dolibarr_del_const($db, "MAIN_DATABASE_PWD_CONFIG_ENCRYPTED",$conf->entity); header("Location: security.php"); @@ -233,6 +233,7 @@ if (is_resource($handle)) } closedir($handle); } +asort($arrayhandler); print '
| '.$langs->trans("PasswordPatternDesc").' | '; print '||
| ' . $langs->trans("MinLength")." | "; print ''; print ' | |
| ' . $langs->trans("NbMajMin")." | "; print ''; print ' | |
| ' . $langs->trans("NbNumMin")." | "; print ''; print ' | |
| ' . $langs->trans("NbSpeMin")." | "; print ''; print ' | |
| ' . $langs->trans("NbIteConsecutive")." | "; print ''; print ' | |
| ' . $langs->trans("NoAmbiCaracAutoGeneration")." | "; print ''.($tabConf[5] ? $langs->trans("Activated") : $langs->trans("Disabled")).' | '; print '|