Use default settings voicemail password length.
This commit is contained in:
@@ -570,7 +570,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/voicemails')) {
|
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/voicemails')) {
|
||||||
//set the voicemail password
|
//set the voicemail password
|
||||||
if (strlen($voicemail_password) == 0) {
|
if (strlen($voicemail_password) == 0) {
|
||||||
$voicemail_password = generate_password(9, 1);
|
$voicemail_password = generate_password($_SESSION['voicemail']['password_length']['numeric'], 1);
|
||||||
}
|
}
|
||||||
//voicemail class
|
//voicemail class
|
||||||
$ext = new extension;
|
$ext = new extension;
|
||||||
@@ -632,7 +632,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
}
|
}
|
||||||
//set the voicemail password
|
//set the voicemail password
|
||||||
if (strlen($voicemail_password) == 0) {
|
if (strlen($voicemail_password) == 0) {
|
||||||
$voicemail_password = generate_password(9, 1);
|
$voicemail_password = generate_password($_SESSION['voicemail']['password_length']['numeric'], 1);
|
||||||
}
|
}
|
||||||
//update extensions
|
//update extensions
|
||||||
$sql = "update v_extensions set ";
|
$sql = "update v_extensions set ";
|
||||||
|
|||||||
Reference in New Issue
Block a user