New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resolves issue #1241 #1242
base: develop
Are you sure you want to change the base?
resolves issue #1241 #1242
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added some comments
owtf/models/user_login_token.py
Outdated
@@ -28,7 +28,7 @@ def find_by_userid_and_token(cls, session, user_id, token): | |||
@classmethod | |||
def add_user_login_token(cls, session, token, user_id): | |||
"""Adds an user_login_token to the DB""" | |||
new_token = cls(user_id=user_id, token=token.decode("ascii")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep the .decode
everywhere to handle weird characters - its better to be explicit than implicit :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Pratham1812 did you test the SimpleCookie
implementation to see if it works?
I have updated the way cookies ae handled also did the other changes. Could you please have a look? @viyatb |
Hey I have tried fixing #1241 the project now functions with my python version
3.11.8
.I have resolved the issue of deprecated dependencies. I have also removed one of the dependencycookies
since it was very outdated, instead i have implemented a one liner approach for the use case of this dependency.I have also fixed the login error which several users were facing :)Description
Related Issue
Motivation and Context
The change tries to run owtf on systems with python versions > 3.9
Reviewers
@viyatb @7a
How Has This Been Tested?
Screenshots (if appropriate):
Application running without docker with python versions 3.11.8
Types of changes
Checklist: