Software / code / prosody
Comparison
plugins/mod_dialback.lua @ 8509:e1d274001855
Backed out changeset 89c42aff8510: The problem in ejabberd has reportedly been resolved and this change causes more problems than it solves (fixes #1006)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 04 Feb 2018 01:13:27 +0100 |
| parent | 8455:1d0862814bfc |
| child | 8514:671343e92070 |
comparison
equal
deleted
inserted
replaced
| 8508:47115b0ca133 | 8509:e1d274001855 |
|---|---|
| 187 end | 187 end |
| 188 return true; | 188 return true; |
| 189 end | 189 end |
| 190 end); | 190 end); |
| 191 | 191 |
| 192 module:hook_stanza("urn:ietf:params:xml:ns:xmpp-sasl", "failure", function (origin, stanza) | |
| 193 if origin.external_auth == "failed" then | |
| 194 module:log("debug", "SASL EXTERNAL failed, falling back to dialback"); | |
| 195 initiate_dialback(origin); | |
| 196 return true; | |
| 197 end | |
| 198 end, 100); | |
| 199 | |
| 192 module:hook_stanza(xmlns_stream, "features", function (origin, stanza) | 200 module:hook_stanza(xmlns_stream, "features", function (origin, stanza) |
| 193 if not origin.external_auth or origin.external_auth == "failed" then | 201 if not origin.external_auth or origin.external_auth == "failed" then |
| 194 module:log("debug", "Initiating dialback..."); | 202 module:log("debug", "Initiating dialback..."); |
| 195 initiate_dialback(origin); | 203 initiate_dialback(origin); |
| 196 return true; | 204 return true; |