From 4ebc8cc2a9038bac7249b10d30bbae892b5d5d11 Mon Sep 17 00:00:00 2001 From: Fatih Malakci Date: Tue, 13 Jul 2021 19:07:47 +0300 Subject: [PATCH] Solved an error caused by LuaSocket by allowing it to pollute the global scope. --- mod_auth_privacyidea/mod_auth_privacyidea.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mod_auth_privacyidea/mod_auth_privacyidea.lua b/mod_auth_privacyidea/mod_auth_privacyidea.lua index 9a1df81..662c9a8 100644 --- a/mod_auth_privacyidea/mod_auth_privacyidea.lua +++ b/mod_auth_privacyidea/mod_auth_privacyidea.lua @@ -10,8 +10,10 @@ local log = module._log; local new_sasl = require "util.sasl".new; local json = require "util.json"; +prosody.unlock_globals() local https = require "ssl.https"; local ltn12 = require("ltn12") +prosody.lock_globals() local options = module:get_option("privacyidea_config"); local server_url = options and options.server; assert(server_url, "No privacyIDEA server URL provided");