remove prints and error for otp

This commit is contained in:
Parsa Nazer
2025-11-15 11:11:15 +03:30
parent fead6f1b1d
commit 6838ccc3b9
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ class SendOTPView(APIView):
except User.DoesNotExist:
return Response({'detail': 'user not found'}, status=status.HTTP_404_NOT_FOUND)
except Exception as e:
return Response({'detail': f'error: {e} مشتی فعلا برو تو غمت نباشه تا بعدا یه کاریش بکنم', 'otp_code': otp}, status=status.HTTP_200_OK)
return Response({'detail': f'error'}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
# return Response({'detail': f'An error occurred: {e}'}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
@extend_schema_view(
post=extend_schema(tags=['authentication'])