From a53ffcca735a64ed727e38d9f440a75b08b0ab9b Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 10 Feb 2022 15:48:34 +0000 Subject: mod_legacyauth: Default to require encryption --- plugins/mod_legacyauth.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_legacyauth.lua b/plugins/mod_legacyauth.lua index 941806d3..52f2c143 100644 --- a/plugins/mod_legacyauth.lua +++ b/plugins/mod_legacyauth.lua @@ -12,7 +12,7 @@ local st = require "util.stanza"; local t_concat = table.concat; local secure_auth_only = module:get_option("c2s_require_encryption", - module:get_option("require_encryption")) + module:get_option("require_encryption", true)) or not(module:get_option("allow_unencrypted_plain_auth")); local sessionmanager = require "core.sessionmanager"; -- cgit v1.2.3