Skip to content

Commit

Permalink
Django: Replace deprecated md5 library with hashlib
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgathuku committed Mar 2, 2015
1 parent 2fae6ab commit b410e9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/notejam/users/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import md5
import hashlib
from datetime import datetime

from django.conf import settings
Expand Down Expand Up @@ -61,7 +61,7 @@ class ForgotPasswordView(FormView):
success_message = 'New password is sent in your email inbox'

def form_valid(self, form):
m = md5.new()
m = hashlib.md5()
m.update(
"{email}{secret}{date}".format(
email=form.cleaned_data['email'],
Expand Down

0 comments on commit b410e9e

Please sign in to comment.