mirror of https://github.com/MISP/MISP
chg: generatePassword now uses random passwords with a minimum length of 12 characters
parent
62a2211a23
commit
075056b4f8
|
@ -223,7 +223,7 @@ class User extends AppModel {
|
|||
'ABCDEFGHIJKLOMNOPQRSTUVWXYZ',
|
||||
'!@#$%^&*()_-'
|
||||
);
|
||||
$passwordLength = Configure::read('Security.password_policy_length') ? Configure::read('Security.password_policy_length') : 12;
|
||||
$passwordLength = (Configure::read('Security.password_policy_length') && Configure::read('Security.password_policy_length') >= 12) ? Configure::read('Security.password_policy_length') : 12;
|
||||
$pw = '';
|
||||
for ($i = 0; $i < $passwordLength; $i++) {
|
||||
$chars = implode('', $groups);
|
||||
|
|
Loading…
Reference in New Issue