From 12217bcb69492c4b1dc7868b3437d8253dd537ca Mon Sep 17 00:00:00 2001 From: Luis Miguel Del Valle Date: Sun, 10 Nov 2024 23:17:58 +0000 Subject: [PATCH] :recycle: using set_query_parameter --- breathecode/authenticate/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/breathecode/authenticate/views.py b/breathecode/authenticate/views.py index d6b08207d..ee50504cd 100644 --- a/breathecode/authenticate/views.py +++ b/breathecode/authenticate/views.py @@ -1237,7 +1237,8 @@ def save_github_token(request): else: logger.error("Failed user registration on rigobot") - return HttpResponseRedirect(redirect_to=url + "?token=" + token.key) + redirect_url = set_query_parameter(url, "token", token.key) + return HttpResponseRedirect(redirect_to=redirect_url) else: raise APIException("Error from github") @@ -1842,7 +1843,7 @@ def render_invite(request, token, member_id=None): ), slug="invite-not-found", ) - + return render_message( request, "Invitation not found or it was already accepted" + callback_msg, academy=academy )