diff --git a/accounts/api/views.py b/accounts/api/views.py index a52fa80..e676a23 100644 --- a/accounts/api/views.py +++ b/accounts/api/views.py @@ -683,6 +683,14 @@ class GoogleLoginAPIView(APIView): google_source, _ = IAmPrincipalSource.objects.get_or_create(name="google") principal = IAmPrincipal.objects.filter(email=email).first() if principal: + if not principal.is_active: + return Response( + { + "message": constants.ACCOUNT_DEACTIVATED, + "errors": constants.ACCOUNT_DEACTIVATED, + }, + status=status.HTTP_403_FORBIDDEN, + ) # Existing user: Update necessary fields principal.first_name = principal_info.get( "given_name", principal.first_name diff --git a/templates/stripe_html/index.html b/templates/stripe_html/index.html index 3b7297c..6421629 100644 --- a/templates/stripe_html/index.html +++ b/templates/stripe_html/index.html @@ -93,10 +93,11 @@
£ {{ subscription.high_amount }} £ {{ subscription.amount }}
Days of Subscription : {{ subscription.plan.days }}
{% else %}£ {{ subscription.amount }}
{% endif %} -Days of Subscription : {{ subscription.plan.days }}
+