summaryrefslogtreecommitdiff
path: root/sleekxmpp/features/feature_mechanisms/stanza/auth.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-11-27 19:57:48 -0500
committerLance Stout <lancestout@gmail.com>2012-11-27 19:57:48 -0500
commite25a49f80444ff36ba1ee91059b4c3d74644d6ff (patch)
tree46f2acdaef728c25bbe65eb220a35d11fdffa531 /sleekxmpp/features/feature_mechanisms/stanza/auth.py
parent2d066c34fd58882901fea0d82c34ad37e312cd27 (diff)
parentb820351f6468e6718dc75b69a0088b2433a658af (diff)
downloadslixmpp-e25a49f80444ff36ba1ee91059b4c3d74644d6ff.tar.gz
slixmpp-e25a49f80444ff36ba1ee91059b4c3d74644d6ff.tar.bz2
slixmpp-e25a49f80444ff36ba1ee91059b4c3d74644d6ff.tar.xz
slixmpp-e25a49f80444ff36ba1ee91059b4c3d74644d6ff.zip
Merge branch 'master' into develop
Diffstat (limited to 'sleekxmpp/features/feature_mechanisms/stanza/auth.py')
-rw-r--r--sleekxmpp/features/feature_mechanisms/stanza/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/features/feature_mechanisms/stanza/auth.py b/sleekxmpp/features/feature_mechanisms/stanza/auth.py
index 7b665345..6b6f85a3 100644
--- a/sleekxmpp/features/feature_mechanisms/stanza/auth.py
+++ b/sleekxmpp/features/feature_mechanisms/stanza/auth.py
@@ -40,7 +40,7 @@ class Auth(StanzaBase):
if not self['mechanism'] in self.plain_mechs:
if values:
self.xml.text = bytes(base64.b64encode(values)).decode('utf-8')
- else:
+ elif values == b'':
self.xml.text = '='
else:
self.xml.text = bytes(values).decode('utf-8')