Commit 6a261d7b authored by kranthi.kumar's avatar kranthi.kumar

Update login_handler.py

parent 8c34b5b4
......@@ -9,7 +9,9 @@ utility_object = Mongo_utility()
class Mongobd:
# method for inserting data into database
@staticmethod
def insert(data, username):
def insert(data, username, password):
# hashing the password
data["Password"] = bcrypt.hashpw(password.encode('utf8'), bcrypt.gensalt())
# connecting to database
register_details = utility_object.connection()
# find the data based on user_name in database
......
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