Skip to content

Commit

Permalink
Update Customer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaiMagal authored Aug 8, 2024
1 parent 4679f8c commit 5fd3027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ public function transformToCustomer($idLang, $password = null)
if (empty($password)) {
$pass_length = 16;
$max_pass_length = (int)Configuration::get('PS_SECURITY_PASSWORD_POLICY_MAXIMUM_LENGTH');
if ($max_pass_length > 0 && $default_pass_length > $max_pass_length) {
if ($max_pass_length > 0 && $pass_length > $max_pass_length) {
$pass_length = $max_pass_length;
}
$password = Tools::passwdGen($pass_length, 'RANDOM');
Expand Down

0 comments on commit 5fd3027

Please sign in to comment.