Update check_password.lua
This commit is contained in:
parent
f66d0af99f
commit
0e9c4e7751
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue