Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
Login
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kranthi.kumar
Login
Commits
6a261d7b
Commit
6a261d7b
authored
Jan 29, 2021
by
kranthi.kumar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update login_handler.py
parent
8c34b5b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
scripts/handler/login_handler.py
scripts/handler/login_handler.py
+3
-1
No files found.
scripts/handler/login_handler.py
View file @
6a261d7b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment