(20250429) - Fix Wrong Comment

This commit is contained in:
yatmesh
2025-04-29 18:00:31 +05:30
parent 3db5606809
commit abfd033a84
2 changed files with 6 additions and 2 deletions
+4 -2
View File
@@ -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: