# HG changeset patch # User Kim Alvefur # Date 1650192546 -7200 # Node ID b8366e31c8292e99f4088d241652b51ce77f44ca # Parent 404a22d52376c8b5c22e8f1755a82fa7bf31f4ba mod_auth_cyrus: Adjust module import to work with repo clone - Fix #1744 The module import was made to work with the plugin installer, but was not compatible with the old method of cloning the whole repo diff -r 404a22d52376 -r b8366e31c829 mod_auth_cyrus/README.md --- a/mod_auth_cyrus/README.md Mon Apr 11 20:32:05 2022 +0100 +++ b/mod_auth_cyrus/README.md Sun Apr 17 12:49:06 2022 +0200 @@ -3,7 +3,7 @@ rockspec: build: modules: - util.sasl_cyrus: sasl_cyrus.lua + mod_auth_cyrus.sasl_cyrus: sasl_cyrus.lua --- # Introduction diff -r 404a22d52376 -r b8366e31c829 mod_auth_cyrus/mod_auth_cyrus.lua --- a/mod_auth_cyrus/mod_auth_cyrus.lua Mon Apr 11 20:32:05 2022 +0100 +++ b/mod_auth_cyrus/mod_auth_cyrus.lua Sun Apr 17 12:49:06 2022 +0200 @@ -19,7 +19,7 @@ prosody.unlock_globals(); --FIXME: Figure out why this is needed and -- why cyrussasl isn't caught by the sandbox -local cyrus_new = require "util.sasl_cyrus".new; +local cyrus_new = module:require "sasl_cyrus".new; prosody.lock_globals(); local new_sasl = function(realm) return cyrus_new(