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