summaryrefslogtreecommitdiff
path: root/sleekxmpp/features/feature_mechanisms
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-08-02 13:47:06 -0700
committerLance Stout <lancestout@gmail.com>2012-08-02 13:47:06 -0700
commit2324c90232aa7815f130761f1215704b391415fb (patch)
treedafac4d001e52631e93609aceb380c0ffa483a13 /sleekxmpp/features/feature_mechanisms
parent59ff08174fd83d4c1c2759be7d24011ccd7419d4 (diff)
downloadslixmpp-2324c90232aa7815f130761f1215704b391415fb.tar.gz
slixmpp-2324c90232aa7815f130761f1215704b391415fb.tar.bz2
slixmpp-2324c90232aa7815f130761f1215704b391415fb.tar.xz
slixmpp-2324c90232aa7815f130761f1215704b391415fb.zip
Ensure default authzids are handled.
Diffstat (limited to 'sleekxmpp/features/feature_mechanisms')
-rw-r--r--sleekxmpp/features/feature_mechanisms/mechanisms.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/features/feature_mechanisms/mechanisms.py b/sleekxmpp/features/feature_mechanisms/mechanisms.py
index b5554181..9a391628 100644
--- a/sleekxmpp/features/feature_mechanisms/mechanisms.py
+++ b/sleekxmpp/features/feature_mechanisms/mechanisms.py
@@ -94,6 +94,8 @@ class FeatureMechanisms(BasePlugin):
result[value] = self.xmpp.boundjid.user
elif value == 'password':
result[value] = creds['password']
+ elif value == 'authzid':
+ result[value] = creds.get('authzid', '')
elif value == 'email':
jid = self.xmpp.boundjid.bare
result[value] = creds.get('email', jid)