Software /
code /
prosody
Comparison
plugins/mod_legacyauth.lua @ 1688:a39a253b5b89
mod_legacyauth: Updated to use module:get_option instead of configmanager
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 13 Aug 2009 16:46:08 +0500 |
parent | 1687:0e061ebf565e |
child | 1689:5eb806590525 |
comparison
equal
deleted
inserted
replaced
1687:0e061ebf565e | 1688:a39a253b5b89 |
---|---|
9 | 9 |
10 | 10 |
11 local st = require "util.stanza"; | 11 local st = require "util.stanza"; |
12 local t_concat = table.concat; | 12 local t_concat = table.concat; |
13 | 13 |
14 local config = require "core.configmanager"; | 14 local secure_auth_only = module:get_option("require_encryption"); |
15 local secure_auth_only = config.get(module:get_host(), "core", "require_encryption"); | |
16 | 15 |
17 local sessionmanager = require "core.sessionmanager"; | 16 local sessionmanager = require "core.sessionmanager"; |
18 local usermanager = require "core.usermanager"; | 17 local usermanager = require "core.usermanager"; |
19 | 18 |
20 module:add_feature("jabber:iq:auth"); | 19 module:add_feature("jabber:iq:auth"); |