From a5ef616258ba5df56b742f63ba37142cb3729570 Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Wed, 25 Dec 2024 23:41:58 +0330 Subject: [PATCH] similate otp succsuess --- backend/account/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/account/views.py b/backend/account/views.py index b094652..ad9ceba 100644 --- a/backend/account/views.py +++ b/backend/account/views.py @@ -57,7 +57,8 @@ class SendOTPView(APIView): return Response({'detail': 'OTP sent successfully'}, status=status.HTTP_200_OK) else: print('remmber to remove #TODO') - return Response({'detail': response, 'otp_code': otp}, status=status.HTTP_500_INTERNAL_SERVER_ERROR) + 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) except User.DoesNotExist: return Response({'detail': 'user not found'}, status=status.HTTP_404_NOT_FOUND)