update number send otp and clint refrence id
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user