update number send otp and clint refrence id

This commit is contained in:
Parsa Nazer
2025-02-21 18:19:10 +03:30
parent 48c6b531cc
commit f5ac33357e
+3 -2
View File
@@ -53,9 +53,9 @@ class SendOTPView(APIView):
ghasedak_sms.SendSingleSmsInput(
message=message,
receptor=phone,
line_number='90002930',
line_number='50001212124889',
send_date='',
client_reference_id=''
client_reference_id=str(user.pk)
)
)
@@ -65,6 +65,7 @@ class SendOTPView(APIView):
return Response({'detail': 'OTP sent successfully'}, status=status.HTTP_200_OK)
else:
print('remmber to remove #TODO')
print(response)
return Response({'detail': f'OTP sent successfully {otp}'}, status=status.HTTP_200_OK)
# return Response({'detail': response, 'otp_code': otp}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)