Update index.lua
Improve security for voicemail_authorized = true;
This commit is contained in:
parent
aa1001be8e
commit
7d113bf8eb
|
|
@ -271,7 +271,11 @@
|
|||
if (voicemail_id) then
|
||||
if (voicemail_authorized) then
|
||||
if (voicemail_authorized == "true") then
|
||||
--skip the password check
|
||||
if (voicemail_id == sip_from_user or voicemail_id == sip_number_alias) then
|
||||
--skip the password check
|
||||
else
|
||||
check_password(voicemail_id, password_tries);
|
||||
end
|
||||
else
|
||||
check_password(voicemail_id, password_tries);
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue