feat: Add SMS code to Redis channel data
Added SMS code to form approval data: - Frontend: Pass SMS code to saveFormData function - Frontend: Include sms_code in payload sent to backend - Backend: Include sms_code in Redis event data This allows n8n workflow to access the verified SMS code for logging/audit purposes. Files: - frontend/src/components/form/StepClaimConfirmation.tsx - backend/app/api/claims.py
This commit is contained in:
@@ -483,6 +483,7 @@ async def publish_form_approval(request: Request):
|
||||
"session_token": session_token,
|
||||
"unified_id": body.get("unified_id"),
|
||||
"phone": body.get("phone"),
|
||||
"sms_code": body.get("sms_code", ""), # SMS код для верификации
|
||||
"sms_verified": True,
|
||||
"idempotency_key": idempotency_key, # Для защиты от дублей в RabbitMQ
|
||||
"timestamp": datetime.utcnow().isoformat(),
|
||||
|
||||
Reference in New Issue
Block a user