print response

This commit is contained in:
Parsa Nazer
2025-02-22 21:53:21 +03:30
parent 86830e8459
commit 880cd16886
+1
View File
@@ -62,6 +62,7 @@ class SendOTPView(APIView):
if response['statusCode'] == 200:
return Response({'detail': 'OTP sent successfully'}, status=status.HTTP_200_OK)
else:
print(response)
return Response({'detail': f'مشکلی در ارسال کد رخ داد'}, status=status.HTTP_200_OK)
# return Response({'detail': response, 'otp_code': otp}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)