Skip to content
Snippets Groups Projects
Commit fc07dde8 authored by aapekaur's avatar aapekaur
Browse files

Removed unnecessary cookie lookups

parent 8bd2b768
No related branches found
No related tags found
1 merge request!7Do my bidding
......@@ -140,9 +140,6 @@ api = Api(flask_app)
jwt = JWTManager(flask_app)
#Set cookies as location for jwt token
if 'cookies' not in flask_app.config['JWT_TOKEN_LOCATION']:
flask_app.config['JWT_TOKEN_LOCATION'] += ('cookies',)
# added auction item resource
......@@ -208,7 +205,6 @@ def register():
Returns:
_type_: if user already exists 401, else 201, in case email or password is not provided 400
"""
print(request.args)
email = request.args.get('email')
password = request.args.get('password')
......@@ -238,8 +234,6 @@ def login():
password = request.args.get('password')
save_as_cookie = False
print(request.form)
print(email, password, save_as_cookie)
# Authenticate the user
user = log_in.UserLogin.authenticate(email, password)
if not user:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment