mirror of
https://github.com/bjc/prosody.git
synced 2025-04-07 07:07:38 +03:00
mod_saslauth: Requiring c2s encryption means requiring c2s encryption... thanks Flo
This commit is contained in:
parent
5226f7e43a
commit
566e3c4ac1
1 changed files with 3 additions and 0 deletions
|
@ -115,6 +115,9 @@ local function sasl_handler(session, stanza)
|
|||
if not session.sasl_handler then
|
||||
return session.send(build_reply("failure", "invalid-mechanism"));
|
||||
end
|
||||
if secure_auth_only and not session.secure then
|
||||
return session.send(build_reply("failure", "encryption-required"));
|
||||
end
|
||||
elseif not session.sasl_handler then
|
||||
return; -- FIXME ignoring out of order stanzas because ejabberd does
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue