requst argd
This commit is contained in:
@@ -68,7 +68,7 @@ def token_required(f):
|
||||
def decorated(*args, **kwargs):
|
||||
#token = request.args.get('token')
|
||||
token = request.headers["Authorization"].split(" ")[1]
|
||||
print(token)
|
||||
# print(token)
|
||||
|
||||
if not token:
|
||||
return jsonify({'message': 'Error - missing token'}), 403
|
||||
@@ -310,9 +310,9 @@ def account_payments(current_user):
|
||||
@app.route("/panel/myproduct/dash")
|
||||
@token_required
|
||||
def myproduct(current_user):
|
||||
data = request.json
|
||||
print(data)
|
||||
product_id = request.args.get('product_id')
|
||||
# data = request.json
|
||||
# print(data)
|
||||
product_id = request.args
|
||||
|
||||
print(product_id)
|
||||
|
||||
|
||||
@@ -78,9 +78,9 @@ class Members:
|
||||
def login(self, username, password):
|
||||
"""Login a user"""
|
||||
member = self.get_by_username(username)
|
||||
print('yyyyyyyyyyy---mmmmmm')
|
||||
print( member )
|
||||
print('yyyyyyyyyyy---xxxxxxxxx')
|
||||
# print('yyyyyyyyyyy---mmmmmm')
|
||||
# print( member )
|
||||
# print('yyyyyyyyyyy---xxxxxxxxx')
|
||||
|
||||
# for column in member:
|
||||
# print(f"{column}")
|
||||
|
||||
Reference in New Issue
Block a user