mirror of
https://github.com/zulip/zulip.git
synced 2025-10-28 18:43:52 +00:00
confirmation: Add explicit host in call to get_link_for_object in auth.py.
This commit is contained in:
@@ -61,11 +61,7 @@ def maybe_send_to_registration(request, email, full_name=''):
|
||||
prereg_user = create_preregistration_user(email, request)
|
||||
|
||||
return redirect("".join((
|
||||
settings.EXTERNAL_URI_SCHEME,
|
||||
request.get_host(),
|
||||
"/",
|
||||
# Split this so we only get the part after the /
|
||||
Confirmation.objects.get_link_for_object(prereg_user, 'unused').split("/", 3)[3],
|
||||
Confirmation.objects.get_link_for_object(prereg_user, request.get_host()),
|
||||
'?full_name=',
|
||||
# urllib does not handle Unicode, so coerece to encoded byte string
|
||||
# Explanation: http://stackoverflow.com/a/5605354/90777
|
||||
|
||||
Reference in New Issue
Block a user