From 38267a22637dc8ab79e26b775fb41dcda44c9409 Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Mon, 22 Dec 2025 13:19:43 +0330 Subject: [PATCH] chagne api key of ghasedak --- backend/account/views.py | 4 ++-- backend/order/tasks.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/account/views.py b/backend/account/views.py index 27df279..fec0639 100644 --- a/backend/account/views.py +++ b/backend/account/views.py @@ -41,7 +41,7 @@ class SendOTPView(APIView): try: user, created = User.objects.get_or_create(phone=phone) otp = user.set_otp() - sms_api = ghasedak_sms.Ghasedak(api_key="1227eaaddcba72bcb0169b37032cf16ae9ac6ed8b3b7c2768b74e2ee351d1b52gyRe3AGomZRPTNEd") + sms_api = ghasedak_sms.Ghasedak(api_key="8f7396f1e3c39e3a4621009c558d955336eea6d21cf257dd74ae262d6f22a458XdoDjH6egJsiZsy8") # response = sms_api.send_single_sms( @@ -74,7 +74,7 @@ class SendOTPView(APIView): return Response({'detail': f'OTP sent successfully {otp}'}, status=status.HTTP_200_OK) else: print(response) - return Response({'detail': f'مشکلی در ارسال کد رخ داد'}, status=status.HTTP_200_OK) + return Response({f'detail': f'مشکلی در ارسال کد رخ داد {otp}'}, status=status.HTTP_200_OK) # return Response({'detail': response, 'otp_code': otp}, status=status.HTTP_500_INTERNAL_SERVER_ERROR) except User.DoesNotExist: diff --git a/backend/order/tasks.py b/backend/order/tasks.py index 6cb1c62..82818c5 100644 --- a/backend/order/tasks.py +++ b/backend/order/tasks.py @@ -46,7 +46,7 @@ def send_change_status_notif(instance_pk, new_status): @shared_task def send_change_status_sms(instance_pk, new_status): instance = OrderModel.objects.get(pk=instance_pk) - sms_api = ghasedak_sms.Ghasedak(api_key="1227eaaddcba72bcb0169b37032cf16ae9ac6ed8b3b7c2768b74e2ee351d1b52gyRe3AGomZRPTNEd") + sms_api = ghasedak_sms.Ghasedak(api_key="8f7396f1e3c39e3a4621009c558d955336eea6d21cf257dd74ae262d6f22a458XdoDjH6egJsiZsy8") response = sms_api.send_single_sms(