From 836fe64cf6b90d288f0e744694b0a16864a33f1c Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Fri, 26 Jun 2020 12:07:07 -0400 Subject: [PATCH] pin_number.lua get pin number description (#5322) * Update pin_number.lua --- app/scripts/resources/scripts/pin_number.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/scripts/resources/scripts/pin_number.lua b/app/scripts/resources/scripts/pin_number.lua index edced0ba8b..ac08191e0b 100644 --- a/app/scripts/resources/scripts/pin_number.lua +++ b/app/scripts/resources/scripts/pin_number.lua @@ -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 \ No newline at end of file + end