1. Incuna
  2. Untitled project
  3. django-registration

Commits

James Bennett  committed eed2740

The other half of the previous commit; tests now pass again

  • Participants
  • Parent commits 0cd1690
  • Branches default

Comments (0)

Files changed (1)

File registration/models.py

View file
  • Ignore whitespace
         
         """
         salt = sha_constructor(str(random.random())).hexdigest()[:5]
-        activation_key = sha.new(salt+user.username).hexdigest()
+        activation_key = sha_constructor(salt+user.username).hexdigest()
         return self.create(user=user,
                            activation_key=activation_key)