summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0078
diff options
context:
space:
mode:
authorAnton Ryzhov <anton@ryzhov.me>2013-02-18 23:41:13 +0400
committerAnton Ryzhov <anton@ryzhov.me>2013-02-18 23:41:13 +0400
commit6dd4456b11046e71bd73b18ab227763ab218514c (patch)
treedb5b84c1664a853e49b8f1b6eaa7c2d5df336301 /sleekxmpp/plugins/xep_0078
parent55e50ad9798247f1730ae51ebe39e9ebf3a643a9 (diff)
downloadslixmpp-6dd4456b11046e71bd73b18ab227763ab218514c.tar.gz
slixmpp-6dd4456b11046e71bd73b18ab227763ab218514c.tar.bz2
slixmpp-6dd4456b11046e71bd73b18ab227763ab218514c.tar.xz
slixmpp-6dd4456b11046e71bd73b18ab227763ab218514c.zip
Fixed resource generation via uuid
Diffstat (limited to 'sleekxmpp/plugins/xep_0078')
-rw-r--r--sleekxmpp/plugins/xep_0078/legacyauth.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0078/legacyauth.py b/sleekxmpp/plugins/xep_0078/legacyauth.py
index 7e2d7bdf..da6bfa2c 100644
--- a/sleekxmpp/plugins/xep_0078/legacyauth.py
+++ b/sleekxmpp/plugins/xep_0078/legacyauth.py
@@ -6,6 +6,7 @@
See the file LICENSE for copying permission.
"""
+import uuid
import logging
import hashlib
import random
@@ -98,7 +99,7 @@ class XEP_0078(BasePlugin):
# A resource is required, so create a random one if necessary
resource = self.xmpp.requested_jid.resource
if not resource:
- resource = uuid.uuid4()
+ resource = str(uuid.uuid4())
iq['auth']['resource'] = resource