aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-02-10 15:48:34 +0000
committerMatthew Wild <mwild1@gmail.com>2022-02-10 15:48:34 +0000
commita53ffcca735a64ed727e38d9f440a75b08b0ab9b (patch)
tree9da34225f1b4bc0a3f10992a9bddae4aff7c6e72
parentca1d202df0464ad72e98d7d341c407d271d7d64a (diff)
downloadprosody-a53ffcca735a64ed727e38d9f440a75b08b0ab9b.tar.gz
prosody-a53ffcca735a64ed727e38d9f440a75b08b0ab9b.zip
mod_legacyauth: Default to require encryption
-rw-r--r--plugins/mod_legacyauth.lua2
1 files changed, 1 insertions, 1 deletions
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";