From 62e3746f07af5db15ca7df0fb3bbee33d3e171ae Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 7 Jan 2025 11:08:08 -0500 Subject: [PATCH] arry data --- services/web/project/__init__.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index 0c701fa..c68830b 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -331,12 +331,7 @@ def verify_register(): data = request.json # print(data) vrl = data['verify_link'] - print( vrl ) -# try: -# data = jwt.decode(vrL, app.config['SECRET_KEY'], algorithms=["HS256"]) -# except: -# return jsonify({'status': 'INVALID', 'message': 'Link is invalid'}),403 - + #print( vrl ) if not vrl: return jsonify({'message': 'Error - missing verify link'}), 403 try: @@ -344,11 +339,6 @@ def verify_register(): except: return jsonify({'status': 'INVALID', 'message': 'Link is invalid'}),403 -# print(data) -# print(data['user']) -# print(data['user']['uid']) - - country = { "last_update": datetime.datetime.utcnow(), "list": [ @@ -365,7 +355,10 @@ def verify_register(): account = cursor.fetchall() print(account[0]) - return jsonify(status="VALID", user=account[0], pending_uid=user_uid,country=country) + productJS = json.dumps( [dict(ix) for ix in account[0]] ) + user_array = json.loads(productJS) + + return jsonify(status="VALID", user=user_array, pending_uid=user_uid,country=country) @app.route("/panel/auth/reset", methods=["POST"])