From eb8774f8041701b4cb1c7d9752e0f5159ce5981a Mon Sep 17 00:00:00 2001 From: Sittha Darapisut Date: Tue, 6 Aug 2024 12:09:17 +0700 Subject: [PATCH] v1.0.13 --- api/src/route/api/glob/auth/callback_POST.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/api/src/route/api/glob/auth/callback_POST.py b/api/src/route/api/glob/auth/callback_POST.py index a245e2f..5008de4 100644 --- a/api/src/route/api/glob/auth/callback_POST.py +++ b/api/src/route/api/glob/auth/callback_POST.py @@ -55,9 +55,6 @@ def main(): # cred = request.json['credential'] - - print(cred) - if cred is not None: try: private_key = serialization.load_pem_private_key(config["PRIKEY"].encode('utf-8'), password=None) @@ -75,14 +72,14 @@ def main(): if cred is not None: DMS = decrypted_message.split("_") - print(decrypted_message) - print(DMS) if len(DMS) != 3: return jsonify({ 'success': False, 'msg': 'Credentials is not valid.', - 'data': {} + 'data': { + "x": [decrypted_message, DMS, cred] + } }), 200 id_info = {