Software /
code /
prosody
Diff
plugins/mod_legacyauth.lua @ 6487:edc63dc72566
mod_legacyauth, mod_saslauth, mod_tls: Pass require_encryption as default option to s2s_require_encryption so the later overrides the former
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 21 Oct 2014 12:49:03 +0200 |
parent | 6302:76699a0ae4c4 |
child | 8768:bd88ca43d77a |
line wrap: on
line diff
--- a/plugins/mod_legacyauth.lua Tue Oct 21 12:47:53 2014 +0200 +++ b/plugins/mod_legacyauth.lua Tue Oct 21 12:49:03 2014 +0200 @@ -11,8 +11,8 @@ local st = require "util.stanza"; local t_concat = table.concat; -local secure_auth_only = module:get_option("c2s_require_encryption") - or module:get_option("require_encryption") +local secure_auth_only = module:get_option("c2s_require_encryption", + module:get_option("require_encryption")) or not(module:get_option("allow_unencrypted_plain_auth")); local sessionmanager = require "core.sessionmanager";