mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00
Allow empty 'next' link when asking for community auth consent
Per crashdump
This commit is contained in:
@ -549,7 +549,7 @@ def communityauth_consent(request, siteid):
|
||||
)
|
||||
return HttpResponseRedirect(form.cleaned_data['next'])
|
||||
else:
|
||||
form = CommunityAuthConsentForm(org.orgname, initial={'next': request.GET['next']})
|
||||
form = CommunityAuthConsentForm(org.orgname, initial={'next': request.GET.get('next', '')})
|
||||
|
||||
return render_pgweb(request, 'account', 'base/form.html', {
|
||||
'form': form,
|
||||
|
Reference in New Issue
Block a user