comparison 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
comparison
equal deleted inserted replaced
2783:8d1634b71066 2784:ba999840f318
4 -- Registration Redirect module for Prosody 4 -- Registration Redirect module for Prosody
5 -- 5 --
6 -- Redirects IP addresses not in the whitelist to a web page or another method to complete the registration. 6 -- Redirects IP addresses not in the whitelist to a web page or another method to complete the registration.
7 7
8 local st = require "util.stanza" 8 local st = require "util.stanza"
9 local cman = configmanager 9 local cman = require "core.configmanager"
10 10
11 local ip_wl = module:get_option_set("registration_whitelist", { "127.0.0.1", "::1" }) 11 local ip_wl = module:get_option_set("registration_whitelist", { "127.0.0.1", "::1" })
12 local url = module:get_option_string("registration_url", nil) 12 local url = module:get_option_string("registration_url", nil)
13 local inst_text = module:get_option_string("registration_text", nil) 13 local inst_text = module:get_option_string("registration_text", nil)
14 local oob = module:get_option_boolean("registration_oob", true) 14 local oob = module:get_option_boolean("registration_oob", true)