diff options
author | Lance Stout <lancestout@gmail.com> | 2013-02-18 11:54:20 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2013-02-18 11:54:20 -0800 |
commit | 8c763fcf43b2690c4f02a9f577fc2d6d72917ee2 (patch) | |
tree | db5b84c1664a853e49b8f1b6eaa7c2d5df336301 /sleekxmpp/plugins | |
parent | 55e50ad9798247f1730ae51ebe39e9ebf3a643a9 (diff) | |
parent | 6dd4456b11046e71bd73b18ab227763ab218514c (diff) | |
download | slixmpp-8c763fcf43b2690c4f02a9f577fc2d6d72917ee2.tar.gz slixmpp-8c763fcf43b2690c4f02a9f577fc2d6d72917ee2.tar.bz2 slixmpp-8c763fcf43b2690c4f02a9f577fc2d6d72917ee2.tar.xz slixmpp-8c763fcf43b2690c4f02a9f577fc2d6d72917ee2.zip |
Merge pull request #223 from anton-ryzhov/resource_generation
Fixed resource generation via uuid
Diffstat (limited to 'sleekxmpp/plugins')
-rw-r--r-- | sleekxmpp/plugins/xep_0078/legacyauth.py | 3 |
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 |