templory login

This commit is contained in:
Parsa Nazer
2025-03-06 23:00:32 +03:30
parent bb7f3df837
commit 0a7ce910ab
+1
View File
@@ -70,6 +70,7 @@ Code: {otp}"""
except User.DoesNotExist: except User.DoesNotExist:
return Response({'detail': 'user not found'}, status=status.HTTP_404_NOT_FOUND) return Response({'detail': 'user not found'}, status=status.HTTP_404_NOT_FOUND)
except Exception as e: except Exception as e:
return Response({'detail': f'error: {e} مشتی فعلا برو تو غمت نباشه تا بعدا یه کاریش بکنم', 'otp_code': otp}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
return Response({'detail': f'An error occurred: {e}'}, status=status.HTTP_500_INTERNAL_SERVER_ERROR) return Response({'detail': f'An error occurred: {e}'}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)