Software /
code /
prosody
Comparison
plugins/mod_legacyauth.lua @ 4258:ee445e658848
mod_legacyauth: Disallow on unencrypted connections by default, heed allow_unencrypted_plain_auth config option (thanks Maranda/Zash)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 20 Apr 2011 18:19:28 +0100 |
parent | 3528:5cdcd7ee6ef5 |
child | 5083:4629c60a303b |
comparison
equal
deleted
inserted
replaced
4256:2f1397b7b1d5 | 4258:ee445e658848 |
---|---|
9 | 9 |
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") or module:get_option("require_encryption"); | 14 local secure_auth_only = module:get_option("c2s_require_encryption") |
15 or module:get_option("require_encryption") | |
16 or not(module:get_option("allow_unencrypted_plain_auth")); | |
15 | 17 |
16 local sessionmanager = require "core.sessionmanager"; | 18 local sessionmanager = require "core.sessionmanager"; |
17 local usermanager = require "core.usermanager"; | 19 local usermanager = require "core.usermanager"; |
18 local nodeprep = require "util.encodings".stringprep.nodeprep; | 20 local nodeprep = require "util.encodings".stringprep.nodeprep; |
19 local resourceprep = require "util.encodings".stringprep.resourceprep; | 21 local resourceprep = require "util.encodings".stringprep.resourceprep; |