Software /
code /
prosody-modules
Comparison
mod_auth_external/mod_auth_external.lua @ 1156:3c82984ffa51
mod_auth_external: Remove unused import of jid.bare
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 13 Aug 2013 20:01:33 +0100 |
parent | 1155:40f7a8d152eb |
child | 1157:a7d0d129df6f |
comparison
equal
deleted
inserted
replaced
1155:40f7a8d152eb | 1156:3c82984ffa51 |
---|---|
17 assert(script_type == "ejabberd" or script_type == "generic", "Config error: external_auth_protocol must be 'ejabberd' or 'generic'"); | 17 assert(script_type == "ejabberd" or script_type == "generic", "Config error: external_auth_protocol must be 'ejabberd' or 'generic'"); |
18 local command = module:get_option_string("external_auth_command", ""); | 18 local command = module:get_option_string("external_auth_command", ""); |
19 local read_timeout = module:get_option_number("external_auth_timeout", 5); | 19 local read_timeout = module:get_option_number("external_auth_timeout", 5); |
20 assert(not host:find(":"), "Invalid hostname"); | 20 assert(not host:find(":"), "Invalid hostname"); |
21 local usermanager = require "core.usermanager"; | 21 local usermanager = require "core.usermanager"; |
22 local jid_bare = require "util.jid".bare; | |
23 local new_sasl = require "util.sasl".new; | 22 local new_sasl = require "util.sasl".new; |
24 | 23 |
25 local pty = lpty.new({ throw_errors = false, no_local_echo = true, use_path = false }); | 24 local pty = lpty.new({ throw_errors = false, no_local_echo = true, use_path = false }); |
26 | 25 |
27 function send_query(text) | 26 function send_query(text) |