plugins/mod_legacyauth.lua

changeset 1912
126401a7159f
parent 1833
f4c88dd32724
child 2610
c9ed79940b2e
child 2923
b7049746bd29
--- a/plugins/mod_legacyauth.lua	Mon Oct 05 14:52:30 2009 +0100
+++ b/plugins/mod_legacyauth.lua	Mon Oct 05 14:59:30 2009 +0100
@@ -11,7 +11,7 @@
 local st = require "util.stanza";
 local t_concat = table.concat;
 
-local secure_auth_only = module:get_option("require_encryption");
+local secure_auth_only = module:get_option("c2s_require_encryption") or module:get_option("require_encryption");
 
 local sessionmanager = require "core.sessionmanager";
 local usermanager = require "core.usermanager";

mercurial