# HG changeset patch
# User t2d
# Date 1507311938 -7200
# Node ID ba999840f318ed5ac321885b48e6f47d2089787f
# Parent 8d1634b71066444a36b07368d91fdcda7bed926a
mod_register_redirect: Import configmanager correctly (fixes #820)
diff -r 8d1634b71066 -r ba999840f318 mod_register_redirect/mod_register_redirect.lua
--- a/mod_register_redirect/mod_register_redirect.lua Thu Oct 05 15:59:54 2017 +0100
+++ b/mod_register_redirect/mod_register_redirect.lua Fri Oct 06 19:45:38 2017 +0200
@@ -6,7 +6,7 @@
-- Redirects IP addresses not in the whitelist to a web page or another method to complete the registration.
local st = require "util.stanza"
-local cman = configmanager
+local cman = require "core.configmanager"
local ip_wl = module:get_option_set("registration_whitelist", { "127.0.0.1", "::1" })
local url = module:get_option_string("registration_url", nil)
|