diff --git a/api/blueprints/common/otp/timed_otp_test.py b/api/blueprints/common/otp/timed_otp_test.py index 80e6bf4..703305a 100644 --- a/api/blueprints/common/otp/timed_otp_test.py +++ b/api/blueprints/common/otp/timed_otp_test.py @@ -329,6 +329,7 @@ async def verify_otp( # Add the user's info to the 'id' map: otp_id = copy.deepcopy(inbound_data.id) otp_id["user"] = kwargs["session_info"] + print("INPUT ID:", json.to_string(inbound_data)) # Perform actual verification: otp_response = await current_app.timed_otp_controller.verify( @@ -338,6 +339,7 @@ async def verify_otp( otp = inbound_data.otp ) ) + print("OUTPUT:", json.to_string(otp_response)) # If the OTP failed: if not otp_response.success: return ResponseModel( @@ -382,8 +384,8 @@ async def verify_otp( "period": inbound_data.id.get("period"), "amount": inbound_data.id.get("amount"), "idClient": inbound_data.id.get("idClient"), - "username": inbound_data.id.get("username"), - "password": inbound_data.id.get("password") + "username": inbound_data.username, + "password": inbound_data.password } ) else: diff --git a/background/finstitutions/trading/tick_in_stateful.py b/background/finstitutions/trading/tick_in_stateful.py index 414160e..0ebc8c8 100644 --- a/background/finstitutions/trading/tick_in_stateful.py +++ b/background/finstitutions/trading/tick_in_stateful.py @@ -401,6 +401,7 @@ def init( print("FATAL: SCRIPT CREDENTIALS LOADING FAILED!") return False script_cred = response.json().get("data") + print("SCRIPT CRED:", json.to_string(script_cred)) # Get the script data: response = http_client.get( @@ -491,6 +492,7 @@ def init( json = {"tokenKey": token_key} ) instruments_of_interest = response.json()["data"]["rs0"] + print("instruments_of_interest", json.to_string(instruments_of_interest)) # Set the feed up by the stockbroker: live_feed = False