From 3df5abb2a457635209d1cee20d6c0e9190f973b8 Mon Sep 17 00:00:00 2001 From: Benoit Alessandroni <benoit@happy-dev.fr> Date: Thu, 8 Dec 2022 13:23:07 +0100 Subject: [PATCH] fix: limit the size of uuid --- djangoldp_account/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangoldp_account/models.py b/djangoldp_account/models.py index 1786a7d..91a60eb 100644 --- a/djangoldp_account/models.py +++ b/djangoldp_account/models.py @@ -230,7 +230,7 @@ def create_account(sender, instance, created, **kwargs): Account.objects.create(user=instance, slug=instance.username) chat_profile = ChatProfile.objects.create(user=instance, slug=instance.username) if isinstance(getattr(settings, 'JABBER_DEFAULT_HOST', False), str): - chat_profile.jabberID = '{}@{}'.format(instance.username + uuid.uuid4().hex, settings.JABBER_DEFAULT_HOST) + chat_profile.jabberID = '{}@{}'.format(instance.username + uuid.uuid4().hex[:7], settings.JABBER_DEFAULT_HOST) chat_profile.save() else: try: -- GitLab