Commit 94d06b33 authored by kranthi.kumar's avatar kranthi.kumar

Update utility.py

parent 9a5fe02f
......@@ -41,7 +41,7 @@ class Mongo_utility:
def hashing(password, value):
try:
# hashing the password
if value is not None:
if value is None:
return bcrypt.hashpw(password.encode('utf8'), bcrypt.gensalt())
else:
# validating password
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment