You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a script wants to provide additional data of the user, the script could be changed from:
returnis_valid
to something like
ifis_validthenreq=http_request(session, 'GET', 'https://example.com/api/permissions', {})
resp=http_send(req)
iflast_err() then-- ignore this error and just report the login as valid instead of requeueing itclear_err()
returntrueendloot['permissions'] =resp['text']
returntrueelsereturnfalseend
badtouch would need to add a dict/table named loot to the lua context before executing the script. After the script finished with success the loot table would be checked and if it's non-empty that data would be included in the report. This is difficult to fit into the regular combolist report we currently use, so we might have to limit this to json reports (and support json reports).
The text was updated successfully, but these errors were encountered:
If a script wants to provide additional data of the user, the script could be changed from:
to something like
badtouch would need to add a dict/table named
loot
to the lua context before executing the script. After the script finished with success the loot table would be checked and if it's non-empty that data would be included in the report. This is difficult to fit into the regular combolist report we currently use, so we might have to limit this to json reports (and support json reports).The text was updated successfully, but these errors were encountered: