Update index.lua

Add additional security when using voicemail_authorized = true.
This commit is contained in:
FusionPBX
2016-11-06 01:07:08 -06:00
committed by GitHub
parent 251b808558
commit f43c639ecc

View File

@@ -1,5 +1,5 @@
-- Part of FusionPBX
-- Copyright (C) 2013-2015 Mark J Crane <markjcrane@fusionpbx.com>
-- Copyright (C) 2013-2016 Mark J Crane <markjcrane@fusionpbx.com>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
@@ -270,7 +270,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