Software /
code /
prosody-modules
Changeset
4926: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 | 4925:404a22d52376 |
children | 4927:77b7e1322281 |
files | mod_auth_cyrus/README.md mod_auth_cyrus/mod_auth_cyrus.lua |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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(