boosh  committed e8fb300

Activation now works

  • Participants
  • Parent commits 947f3f5
  • Branches default

Comments (0)

Files changed (1)

File registration/

 from django.utils.translation import ugettext_lazy as _
-SHA224_RE = re.compile('^[a-f0-9]{56}$')
+SHA1_RE = re.compile('^[a-f0-9]{40}$')
 class RegistrationManager(models.Manager):
         # Make sure the key we're trying conforms to the pattern of a
         # SHA224 hash; if it doesn't, no point trying to look it up in
         # the database.
-        if
+        if
                 profile = self.get(activation_key=activation_key)
             except self.model.DoesNotExist: