From 347ae1b167332052b33b30ab32a97901b50a3738 Mon Sep 17 00:00:00 2001 From: Adibov Date: Wed, 29 Nov 2023 02:39:49 +0330 Subject: [PATCH] fix(backend): redirect to login page on user activation --- backend/backend_api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/backend_api/views.py b/backend/backend_api/views.py index 9cee2d8..82f26fb 100644 --- a/backend/backend_api/views.py +++ b/backend/backend_api/views.py @@ -208,7 +208,7 @@ def activate(self, request): status.HTTP_400_BAD_REQUEST, "Token didn't match with any user")) account.is_active = True account.save() - return redirect(urllib.parse.urljoin(BASE_URL, 'signup')) + return redirect(urllib.parse.urljoin(BASE_URL, 'signup') + '?login=true') class PaymentViewSet(viewsets.GenericViewSet):