Update index.lua
Improve security for voicemail_authorized = true;
This commit is contained in:
@@ -271,6 +271,7 @@
|
|||||||
if (voicemail_id) then
|
if (voicemail_id) then
|
||||||
if (voicemail_authorized) then
|
if (voicemail_authorized) then
|
||||||
if (voicemail_authorized == "true") then
|
if (voicemail_authorized == "true") then
|
||||||
|
if (voicemail_id == sip_from_user or voicemail_id == sip_number_alias) then
|
||||||
--skip the password check
|
--skip the password check
|
||||||
else
|
else
|
||||||
check_password(voicemail_id, password_tries);
|
check_password(voicemail_id, password_tries);
|
||||||
@@ -281,6 +282,9 @@
|
|||||||
else
|
else
|
||||||
check_password(voicemail_id, password_tries);
|
check_password(voicemail_id, password_tries);
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
check_password(voicemail_id, password_tries);
|
||||||
|
end
|
||||||
|
|
||||||
--send to the main menu
|
--send to the main menu
|
||||||
timeouts = 0;
|
timeouts = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user