sources/oauth: fix FlowExecutor view call

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-09-07 11:39:03 +02:00
parent 3c6aac5435
commit de3e1c3dbc
1 changed files with 1 additions and 1 deletions

View File

@ -43,5 +43,5 @@ class OAuthRedirect(OAuthClientMixin, RedirectView):
raise Http404(f"source {slug} is not enabled.") raise Http404(f"source {slug} is not enabled.")
client = self.get_client(source, callback=self.get_callback_url(source)) client = self.get_client(source, callback=self.get_callback_url(source))
params = self.get_additional_parameters(source) params = self.get_additional_parameters(source)
FlowExecutorView().cancel() FlowExecutorView(request=self.request).cancel()
return client.get_redirect_url(params) return client.get_redirect_url(params)