Honor the default settings for password complexity and strength when copying extensions (#6632)

This commit is contained in:
Harry Foster 2023-04-28 18:21:35 +01:00 committed by GitHub
parent 3210441627
commit 83af204be1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@
$array['extensions'][0]['extension_uuid'] = uuid();
$array['extensions'][0]['extension'] = $extension_new;
$array['extensions'][0]['number_alias'] = $number_alias_new;
$array['extensions'][0]['password'] = generate_password();
$array['extensions'][0]['password'] = generate_password($_SESSION["extension"]["password_length"]["numeric"], $_SESSION["extension"]["password_strength"]["numeric"]);
$array['extensions'][0]['accountcode'] = $password;
$array['extensions'][0]['effective_caller_id_name'] = $effective_caller_id_name;
$array['extensions'][0]['effective_caller_id_number'] = $effective_caller_id_number;