From bbfb2e5e80e377718f746cd5a0d05afc1bab3f6f Mon Sep 17 00:00:00 2001 From: Sittha Darapisut Date: Tue, 6 Aug 2024 11:57:43 +0700 Subject: [PATCH] v1.0.12 --- api/src/app.py | 3 ++- api/src/route/api/glob/auth/callback_POST.py | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api/src/app.py b/api/src/app.py index 45300f4..998d24e 100644 --- a/api/src/app.py +++ b/api/src/app.py @@ -125,5 +125,6 @@ def custom_expired_token_response(jwt_header, jwt_payload): # start api server if __name__ == "__main__": - app.run(debug=isDev, host=config['HOST'], port=int(config['PORT'])) + # app.run(debug=isDev, host=config['HOST'], port=int(config['PORT'])) + app.run(debug=True, host=config['HOST'], port=int(config['PORT'])) \ No newline at end of file diff --git a/api/src/route/api/glob/auth/callback_POST.py b/api/src/route/api/glob/auth/callback_POST.py index 0beeec6..a245e2f 100644 --- a/api/src/route/api/glob/auth/callback_POST.py +++ b/api/src/route/api/glob/auth/callback_POST.py @@ -56,6 +56,7 @@ def main(): # cred = request.json['credential'] + print(cred) if cred is not None: try: @@ -74,7 +75,9 @@ def main(): if cred is not None: DMS = decrypted_message.split("_") - + print(decrypted_message) + print(DMS) + if len(DMS) != 3: return jsonify({ 'success': False,