Skip to content

Commit

Permalink
fix(backend): redirect to login page on user activation
Browse files Browse the repository at this point in the history
  • Loading branch information
Adibov committed Nov 28, 2023
1 parent aabdc31 commit 347ae1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/backend_api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 347ae1b

Please sign in to comment.