Fix python indentation
This commit is contained in:
@ -4,7 +4,6 @@ from flask import request, jsonify
|
||||
from functools import wraps
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
|
||||
SECRET_KEY = os.getenv('JWT_SECRET')
|
||||
ADMIN_SECRET_KEY = os.getenv('JWT_ADMIN_SECRET_KEY')
|
||||
|
||||
@ -24,7 +23,6 @@ def user_token_required(f):
|
||||
def decorated(*args, **kwargs):
|
||||
token = None
|
||||
if 'Authorization' in request.headers:
|
||||
print("request.headers['Authorization'].split(" ")[1]", request.headers['Authorization'].split(" ")[1])
|
||||
token = request.headers['Authorization'].split(" ")[1]
|
||||
if not token:
|
||||
return jsonify({'message': 'Token is missing!'}), 401
|
||||
|
||||
Reference in New Issue
Block a user