Skip to content

Commit

Permalink
Merge pull request breatheco-de#1496 from lumi-tip/development-lumi-7944
Browse files Browse the repository at this point in the history
♻️ using set_query_parameter
  • Loading branch information
tommygonzaleza authored Nov 11, 2024
2 parents 3248e26 + 12217bc commit bd26bdb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions breathecode/authenticate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
)
Expand Down

0 comments on commit bd26bdb

Please sign in to comment.