Mercurial > prosody-modules
diff mod_auth_cyrus/mod_auth_cyrus.lua @ 4927:b8366e31c829
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
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 17 Apr 2022 12:49:06 +0200 |
parents | 099dcdb732b1 |
children |
line wrap: on
line diff
--- 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(