mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update check_password.lua
This commit is contained in:
@@ -69,9 +69,13 @@
|
|||||||
end
|
end
|
||||||
|
|
||||||
--please enter your password followed by pound
|
--please enter your password followed by pound
|
||||||
dtmf_digits = '';
|
min_digits = 2;
|
||||||
password = macro(session, "voicemail_password", 20, 5000, '');
|
max_digits = 20;
|
||||||
|
digit_timeout = 5000;
|
||||||
|
max_tries = 3;
|
||||||
|
password = session:playAndGetDigits(min_digits, max_digits, max_tries, digit_timeout, "#", "phrase:voicemail_enter_pass:#", "", "\\d+");
|
||||||
--freeswitch.consoleLog("notice", "[voicemail] password: " .. password .. "\n");
|
--freeswitch.consoleLog("notice", "[voicemail] password: " .. password .. "\n");
|
||||||
|
|
||||||
--compare the password from the database with the password provided by the user
|
--compare the password from the database with the password provided by the user
|
||||||
if (voicemail_password ~= password) then
|
if (voicemail_password ~= password) then
|
||||||
--incorrect password
|
--incorrect password
|
||||||
|
|||||||
Reference in New Issue
Block a user