From e7eb0c0750cd56afb69af68d1d4b482ea8d69337 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 9 May 2019 19:19:18 +0200 Subject: [PATCH 4/5] =?UTF-8?q?int=C3=A9gration=20nettoyage=20cot=C3=A9=20?= =?UTF-8?q?a2=20(#32866)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sera rebasé --- src/authentic2_auth_fc/views.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/authentic2_auth_fc/views.py b/src/authentic2_auth_fc/views.py index 7505db7..d446574 100644 --- a/src/authentic2_auth_fc/views.py +++ b/src/authentic2_auth_fc/views.py @@ -45,14 +45,11 @@ except ImportError: from authentic2 import app_settings as a2_app_settings from authentic2 import utils as a2_utils, hooks, constants from authentic2.a2_rbac.utils import get_default_ou +from authentic2.forms.passwords import SetPasswordForm from . import app_settings, models, utils -SET_PASSWORD_FORM_CLASS = a2_utils.import_module_or_class( - a2_app_settings.A2_REGISTRATION_SET_PASSWORD_FORM_CLASS) - - class LoggerMixin(object): def __init__(self, *args, **kwargs): self.logger = logging.getLogger(__name__) @@ -518,7 +515,7 @@ class UnlinkView(LoggerMixin, FormView): def get_form_class(self): form_class = Form if self.must_set_password(): - form_class = SET_PASSWORD_FORM_CLASS + form_class = SetPasswordForm return form_class def get_form_kwargs(self, **kwargs): -- 2.20.1