From 93086540e66080f005060feda149cce4848d8bea Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 5 Oct 2018 19:04:19 +0200 Subject: [PATCH] views: pass service field to fc login post registration (fixes #21908) --- src/authentic2_auth_fc/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/authentic2_auth_fc/views.py b/src/authentic2_auth_fc/views.py index 28397ad..eb2d8e4 100644 --- a/src/authentic2_auth_fc/views.py +++ b/src/authentic2_auth_fc/views.py @@ -459,6 +459,8 @@ class RegistrationView(PopupViewMixin, LoggerMixin, View): params = { REDIRECT_FIELD_NAME: redirect_to, } + if constants.SERVICE_FIELD_NAME in request.GET: + params[constants.SERVICE_FIELD_NAME] = request.GET[constants.SERVICE_FIELD_NAME] if self.get_in_popup(): params['popup'] = '' redirect_to = a2_utils.make_url('fc-login-or-link', params=params) -- 2.18.0