1. Michael Elsdörfer
  2. django-registration

Commits

Michael Elsdörfer  committed 7d77fca

The recent sha hashlib was broken, not all uses were updated.

  • Participants
  • Parent commits 860af03
  • Branches default

Comments (0)

Files changed (1)

File registration/models.py

View file
         username = user.username
         if isinstance(username, unicode):
             username = username.encode('utf-8')
-        activation_key = sha_constructor(salt+username).hexdigest()
+        activation_key = hashlib.sha1(salt+username).hexdigest()
         defaults = kwargs.copy()
         defaults['activation_key'] = activation_key
         profile, created = self.get_or_create(user=user, defaults=defaults)