pin_number.lua get pin number description (#5322)

* Update pin_number.lua
This commit is contained in:
agree 2020-06-26 12:07:07 -04:00 committed by GitHub
parent 468cdb9a88
commit 836fe64cf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -113,6 +113,7 @@
dbh:query(sql, params, function(row)
--get the values from the database
accountcode = row["accountcode"];
description = row["description"];
--set the variable to true
auth = true;
--set the accountcode
@ -121,6 +122,7 @@
end
--set the authorized pin number that was used
session:setVariable("pin_number", digits);
session:setVariable("pin_description", description);
end);
elseif (pin_number == "voicemail") then
local sql = [[SELECT * FROM v_voicemails
@ -194,4 +196,4 @@
if (pin_number) then
check_pin_number();
end
end
end