mirror of
https://github.com/zulip/zulip.git
synced 2026-07-18 21:04:19 +08:00
Redirect to /accounts/register relative to the current domain.
This ensures that we don't always send you to hhq.c when you use OpenID. (imported from commit ab4c4cfa201740fbddcaa2e51bc15bfe977e221d)
This commit is contained in:
parent
ce1389dc35
commit
3bb3bbb1ee
@ -415,7 +415,9 @@ def handle_openid_errors(request, issue, openid_response=None):
|
||||
prereg_user.email = google_email
|
||||
prereg_user.save()
|
||||
return redirect("".join((
|
||||
Confirmation.objects.get_link_for_object(prereg_user),
|
||||
"/",
|
||||
# Split this so we only get the part after the /
|
||||
Confirmation.objects.get_link_for_object(prereg_user).split("/", 3)[3],
|
||||
'?gafyd_name=',
|
||||
urllib.quote_plus(full_name))))
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user