Software /
code /
prosody
Diff
plugins/mod_legacyauth.lua @ 6502:8fed6ea12098
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Oct 2014 20:58:02 +0100 |
parent | 6487:edc63dc72566 |
child | 8768:bd88ca43d77a |
line wrap: on
line diff
--- a/plugins/mod_legacyauth.lua Wed Oct 22 16:00:40 2014 -0400 +++ b/plugins/mod_legacyauth.lua Sun Oct 26 20:58:02 2014 +0100 @@ -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";