diff options
author | lovetox <philipp@hoerist.com> | 2020-03-14 15:43:51 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-03-14 15:43:51 +0300 |
commit | bfa4073870a1e268ab0a38cc3c01ee139266dd56 (patch) | |
tree | 559e563a6db0d31edeed87639c6b09d80e4e8a71 /nbxmpp | |
parent | 5425f7ea547a5ff0f11846514bf9dc92f195bf90 (diff) |
SASL: Treat unknown error conditions as not-authorized
Recommended by the RFC
Diffstat (limited to 'nbxmpp')
-rw-r--r-- | nbxmpp/auth.py | 2 |
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() |