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

Update utility.py

parent 9a5fe02f
...@@ -41,7 +41,7 @@ class Mongo_utility: ...@@ -41,7 +41,7 @@ class Mongo_utility:
def hashing(password, value): def hashing(password, value):
try: try:
# hashing the password # hashing the password
if value is not None: if value is None:
return bcrypt.hashpw(password.encode('utf8'), bcrypt.gensalt()) return bcrypt.hashpw(password.encode('utf8'), bcrypt.gensalt())
else: else:
# validating password # 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