Remove unnecessary arguments for redirect_to_login.
This commit is contained in:
parent
7792ff3450
commit
7c49df7988
1 changed files with 1 additions and 2 deletions
|
@ -43,8 +43,7 @@ class AuthorizeView(View):
|
||||||
return render(request, 'openid_provider/authorize.html', context)
|
return render(request, 'openid_provider/authorize.html', context)
|
||||||
else:
|
else:
|
||||||
path = request.get_full_path()
|
path = request.get_full_path()
|
||||||
return redirect_to_login(
|
return redirect_to_login(path)
|
||||||
path, settings.get('LOGIN_URL'), REDIRECT_FIELD_NAME)
|
|
||||||
|
|
||||||
except (ClientIdError, RedirectUriError) as error:
|
except (ClientIdError, RedirectUriError) as error:
|
||||||
context = {
|
context = {
|
||||||
|
|
Loading…
Reference in a new issue