Fix help on minimum nb of chars

This commit is contained in:
Laurent Destailleur 2020-09-17 15:09:29 +02:00
parent 7cc75ac873
commit e123a4cb84
3 changed files with 4 additions and 4 deletions

View File

@ -81,8 +81,8 @@ class modGeneratePassPerso extends ModeleGenPassword
$this->user = $user;
if (empty($conf->global->USER_PASSWORD_PATTERN)) {
// default value (8carac, 1maj, 1digit, 1spe, 3 repeat, no ambi at auto generation.
dolibarr_set_const($db, "USER_PASSWORD_PATTERN", '8;1;1;1;3;1', 'chaine', 0, '', $conf->entity);
// default value (10carac, 1maj, 1digit, 1spe, 3 repeat, no ambi at auto generation.
dolibarr_set_const($db, "USER_PASSWORD_PATTERN", '10;1;1;1;3;1', 'chaine', 0, '', $conf->entity);
}
$this->Maj = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

View File

@ -75,7 +75,7 @@ class modGeneratePassStandard extends ModeleGenPassword
public function getDescription()
{
global $langs;
return $langs->trans("PasswordGenerationStandard");
return $langs->trans("PasswordGenerationStandard", $this->length);
}
/**

View File

@ -1309,7 +1309,7 @@ GetBarCode=Get barcode
NumberingModules=Numbering models
DocumentModules=Document models
##### Module password generation
PasswordGenerationStandard=Return a password generated according to internal Dolibarr algorithm: 8 characters containing shared numbers and characters in lowercase.
PasswordGenerationStandard=Return a password generated according to internal Dolibarr algorithm: %s characters containing shared numbers and characters in lowercase.
PasswordGenerationNone=Do not suggest a generated password. Password must be typed in manually.
PasswordGenerationPerso=Return a password according to your personally defined configuration.
SetupPerso=According to your configuration