Commits

Michael Elsdörfer committed 7d77fca

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

Comments (0)

Files changed (1)

registration/models.py

         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)