diff options
author | Mike Chen <chagel@gmail.com> | 2009-07-05 22:23:19 +0800 |
---|---|---|
committer | Mike Chen <chagel@gmail.com> | 2009-07-05 22:23:19 +0800 |
commit | afc6db631fd54050a49a3f7362f8c79202209a4e (patch) | |
tree | f64a43e1c74b4d72ba06f150d472441ad82334d1 /django_authopenid/models.py | |
parent | dbe9e6b1bed5937ddab7b890c380179dcfb8ee98 (diff) | |
download | askbot-afc6db631fd54050a49a3f7362f8c79202209a4e.tar.gz askbot-afc6db631fd54050a49a3f7362f8c79202209a4e.tar.bz2 askbot-afc6db631fd54050a49a3f7362f8c79202209a4e.zip |
add Chinese message files to move out localiztion
Diffstat (limited to 'django_authopenid/models.py')
-rw-r--r-- | django_authopenid/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django_authopenid/models.py b/django_authopenid/models.py index 9826c452..e6fb8111 100644 --- a/django_authopenid/models.py +++ b/django_authopenid/models.py @@ -3,7 +3,7 @@ from django.conf import settings from django.contrib.auth.models import User from django.db import models -import md5, random, sys, os, time +import hashlib, random, sys, os, time __all__ = ['Nonce', 'Association', 'UserAssociation', 'UserPasswordQueueManager', 'UserPasswordQueue'] @@ -47,7 +47,7 @@ class UserPasswordQueueManager(models.Manager): # The random module is seeded when this Apache child is created. # Use SECRET_KEY as added salt. while 1: - confirm_key = md5.new("%s%s%s%s" % ( + confirm_key = hashlib.md5("%s%s%s%s" % ( random.randint(0, sys.maxint - 1), os.getpid(), time.time(), settings.SECRET_KEY)).hexdigest() try: |