mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
Point registration to correct url.
While logging through GitHub if the realm of the user doesn't exist then we are redirected to registration page but the action points to the complete url of the GitHub oAuth overflow.
This commit is contained in:
parent
2df62d4539
commit
0aa72cb347
@ -405,8 +405,9 @@ def maybe_send_to_registration(request, email, full_name=''):
|
||||
# Explanation: http://stackoverflow.com/a/5605354/90777
|
||||
urllib.parse.quote_plus(full_name.encode('utf8')))))
|
||||
else:
|
||||
url = reverse('register')
|
||||
return render_to_response('zerver/accounts_home.html',
|
||||
{'form': form, 'current_url': request.get_full_path},
|
||||
{'form': form, 'current_url': lambda: url},
|
||||
request=request)
|
||||
|
||||
def login_or_register_remote_user(request, remote_username, user_profile, full_name=''):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user