Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/nbxmpp
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2020-03-14 15:43:51 +0300
committerlovetox <philipp@hoerist.com>2020-03-14 15:43:51 +0300
commitbfa4073870a1e268ab0a38cc3c01ee139266dd56 (patch)
tree559e563a6db0d31edeed87639c6b09d80e4e8a71 /nbxmpp
parent5425f7ea547a5ff0f11846514bf9dc92f195bf90 (diff)
SASL: Treat unknown error conditions as not-authorized
Recommended by the RFC
Diffstat (limited to 'nbxmpp')
-rw-r--r--nbxmpp/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nbxmpp/auth.py b/nbxmpp/auth.py
index 6c287ec..4d24dcf 100644
--- a/nbxmpp/auth.py
+++ b/nbxmpp/auth.py
@@ -187,7 +187,7 @@ class SASL:
def _on_failure(self, stanza):
text = stanza.getTagData('text')
- reason = 'unknown-error'
+ reason = 'not-authorized'
childs = stanza.getChildren()
for child in childs:
name = child.getName()