Skip to content

Commit

Permalink
Fixed a mistake when fixing 2.6 DeprecationWarning with sha.
Browse files Browse the repository at this point in the history
  • Loading branch information
pinax committed Apr 4, 2009
1 parent 13987d6 commit 8be10bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emailconfirmation/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def confirm_email(self, confirmation_key):
return email_address

def send_confirmation(self, email_address):
salt = sha_constructor.new(str(random())).hexdigest()[:5]
confirmation_key = sha_constructor.new(salt + email_address.email).hexdigest()
salt = sha_constructor(str(random())).hexdigest()[:5]
confirmation_key = sha_constructor(salt + email_address.email).hexdigest()
current_site = Site.objects.get_current()
# check for the url with the dotted view path
try:
Expand Down

0 comments on commit 8be10bc

Please sign in to comment.