Software /
code /
prosody
Changeset
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 |
parents | 1687:0e061ebf565e |
children | 1689:5eb806590525 |
files | plugins/mod_legacyauth.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_legacyauth.lua Thu Aug 13 16:45:47 2009 +0500 +++ b/plugins/mod_legacyauth.lua Thu Aug 13 16:46:08 2009 +0500 @@ -11,8 +11,7 @@ local st = require "util.stanza"; local t_concat = table.concat; -local config = require "core.configmanager"; -local secure_auth_only = config.get(module:get_host(), "core", "require_encryption"); +local secure_auth_only = module:get_option("require_encryption"); local sessionmanager = require "core.sessionmanager"; local usermanager = require "core.usermanager";