Mercurial > prosody-modules
comparison mod_register_json/mod_register_json.lua @ 660:aa3fbb33700d
mod_register_json: same as previous ones, un-needeness.
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Sun, 29 Apr 2012 20:43:40 +0000 |
parents | 81d269f97ea2 |
children | b0c0acccd7c4 |
comparison
equal
deleted
inserted
replaced
659:f7aacd9e93de | 660:aa3fbb33700d |
---|---|
11 local json_decode = require "util.json".decode | 11 local json_decode = require "util.json".decode |
12 local os_time = os.time | 12 local os_time = os.time |
13 local nodeprep = require "util.encodings".stringprep.nodeprep | 13 local nodeprep = require "util.encodings".stringprep.nodeprep |
14 | 14 |
15 module:depends("http") | 15 module:depends("http") |
16 module:set_global() | |
17 | 16 |
18 -- Pick up configuration. | 17 -- Pick up configuration. |
19 | 18 |
20 local secure = module:get_option_boolean("reg_servlet_secure", true) | 19 local secure = module:get_option_boolean("reg_servlet_secure", true) |
21 local set_realm_name = module:get_option_string("reg_servlet_realm", "Restricted") | 20 local set_realm_name = module:get_option_string("reg_servlet_realm", "Restricted") |