Skip to content

Commit

Permalink
Remove binascii import
Browse files Browse the repository at this point in the history
  • Loading branch information
fxleblanc committed Oct 12, 2015
1 parent 402d071 commit 2846de8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/usr/bin/env python3
import uuid
<<<<<<< HEAD
import logging
=======
import binascii
>>>>>>> Using hexdigest instead of digest

from flask import Flask, send_from_directory, jsonify, request, session
from logging import Formatter
Expand Down Expand Up @@ -56,16 +52,13 @@ def validate_signup_body(req):
return True


<<<<<<< HEAD
=======
def get_hash(password, salt):
m = hashlib.sha512()
m.update(salt.encode('utf8'))
m.update(password.encode('utf8'))
return m.digest()


>>>>>>> Using hexdigest instead of digest
def email_exists(email):
return User.query.filter(User.email == email).count() > 0

Expand Down

0 comments on commit 2846de8

Please sign in to comment.