Use default settings voicemail password length.

This commit is contained in:
FusionPBX 2016-08-28 14:25:50 -06:00 committed by GitHub
parent cef3d3f948
commit b16b9a6430
1 changed files with 2 additions and 2 deletions

View File

@ -570,7 +570,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/voicemails')) {
//set the voicemail password
if (strlen($voicemail_password) == 0) {
$voicemail_password = generate_password(9, 1);
$voicemail_password = generate_password($_SESSION['voicemail']['password_length']['numeric'], 1);
}
//voicemail class
$ext = new extension;
@ -632,7 +632,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
//set the voicemail password
if (strlen($voicemail_password) == 0) {
$voicemail_password = generate_password(9, 1);
$voicemail_password = generate_password($_SESSION['voicemail']['password_length']['numeric'], 1);
}
//update extensions
$sql = "update v_extensions set ";