# HG changeset patch # User Waqas Hussain # Date 1250163968 -18000 # Node ID a39a253b5b89925cef9df643240e410499d25068 # Parent 0e061ebf565eeba2e0d6c815b883ab01dee0b772 mod_legacyauth: Updated to use module:get_option instead of configmanager diff -r 0e061ebf565e -r a39a253b5b89 plugins/mod_legacyauth.lua --- 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";