diff --git a/htdocs/admin/security.php b/htdocs/admin/security.php
index 14975f8c68a..de404916fb4 100644
--- a/htdocs/admin/security.php
+++ b/htdocs/admin/security.php
@@ -216,6 +216,8 @@ print '
| ';
+ print img_picto('', $module->picto, 'class="width25 size15x opacitymedium"').' ';
print ucfirst($key);
print " | \n";
print $module->getDescription().' ';
- print $langs->trans("MinLength").': '.$module->length;
+ print $langs->trans("MinLength").': '.$module->length.'';
print ' | ';
// Show example of numbering module
- print '';
+ print ' | ';
$tmp = $module->getExample();
if (preg_match('/^Error/', $tmp)) {
$langs->load("errors");
@@ -246,7 +249,7 @@ foreach ($arrayhandler as $key => $module) {
}
print ' | '."\n";
- print '';
+ print ' | ';
if ($conf->global->USER_PASSWORD_GENERATED == $key) {
//print img_picto('', 'tick');
print img_picto($langs->trans("Enabled"), 'switch_on');
@@ -267,7 +270,6 @@ print '';
//if($conf->global->MAIN_SECURITY_DISABLEFORGETPASSLINK == 1)
// Patter for Password Perso
if ($conf->global->USER_PASSWORD_GENERATED == "Perso") {
- $tabConf = explode(";", $conf->global->USER_PASSWORD_PATTERN);
print ' ';
print '';
@@ -346,7 +348,7 @@ if ($conf->global->USER_PASSWORD_GENERATED == "Perso") {
print ' }';
print ' function generatelink(){';
- print ' return "security.php?action=updatepattern&pattern="+getStringArg();';
+ print ' return "security.php?action=updatepattern&token='.newToken().'&pattern="+getStringArg();';
print ' }';
print ' function valuePatternChange(){';
@@ -470,7 +472,9 @@ print ' |
';
print '';
+
print '';
+
print '