Comparison

plugins/mod_legacyauth.lua @ 12328:a80314101bc6

mod_legacyauth: Default to require encryption
author Matthew Wild <mwild1@gmail.com>
date Thu, 10 Feb 2022 15:48:34 +0000
parent 10557:e1cb869e2f6c
child 12977:74b9e05af71e
comparison
equal deleted inserted replaced
12327:4d6f4f6d0814 12328:a80314101bc6
10 10
11 local st = require "util.stanza"; 11 local st = require "util.stanza";
12 local t_concat = table.concat; 12 local t_concat = table.concat;
13 13
14 local secure_auth_only = module:get_option("c2s_require_encryption", 14 local secure_auth_only = module:get_option("c2s_require_encryption",
15 module:get_option("require_encryption")) 15 module:get_option("require_encryption", true))
16 or not(module:get_option("allow_unencrypted_plain_auth")); 16 or not(module:get_option("allow_unencrypted_plain_auth"));
17 17
18 local sessionmanager = require "core.sessionmanager"; 18 local sessionmanager = require "core.sessionmanager";
19 local usermanager = require "core.usermanager"; 19 local usermanager = require "core.usermanager";
20 local nodeprep = require "util.encodings".stringprep.nodeprep; 20 local nodeprep = require "util.encodings".stringprep.nodeprep;