From 2be71dd00b4d7abbf4f06f50136c8eb9aa0356b9 Mon Sep 17 00:00:00 2001 From: r350178982 <32759763+r350178982@users.noreply.github.com> Date: Tue, 8 Apr 2025 17:05:48 +0800 Subject: [PATCH] Update models.py --- thirdpart/registration/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdpart/registration/models.py b/thirdpart/registration/models.py index 5c059f72a7..604707c06d 100644 --- a/thirdpart/registration/models.py +++ b/thirdpart/registration/models.py @@ -122,7 +122,7 @@ class RegistrationManager(models.Manager): if isinstance(username, str): username = username.encode('utf-8') - # Take the first 16 character to avoid errors. + # Take the first 40 character to avoid errors. # (1406, "Data too long for column 'activation_key' at row 1") activation_key = hashlib.sha256(salt+username).hexdigest()[:40] return self.create(emailuser_id=user.id,