diff mod_register_redirect/mod_register_redirect.lua @ 2784:ba999840f318

mod_register_redirect: Import configmanager correctly (fixes #820)
author t2d <td@tem.li>
date Fri, 06 Oct 2017 19:45:38 +0200
parents 7983335e88e9
children 2023cba9ead0
line wrap: on
line diff
--- 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)