Projet

Général

Profil

0004-int-gration-nettoyage-cot-a2-32866.patch

Benjamin Dauvergne, 09 mai 2019 19:25

Télécharger (1,51 ko)

Voir les différences:

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(-)
src/authentic2_auth_fc/views.py
45 45
from authentic2 import app_settings as a2_app_settings
46 46
from authentic2 import utils as a2_utils, hooks, constants
47 47
from authentic2.a2_rbac.utils import get_default_ou
48
from authentic2.forms.passwords import SetPasswordForm
48 49

  
49 50
from . import app_settings, models, utils
50 51

  
51 52

  
52
SET_PASSWORD_FORM_CLASS = a2_utils.import_module_or_class(
53
    a2_app_settings.A2_REGISTRATION_SET_PASSWORD_FORM_CLASS)
54

  
55

  
56 53
class LoggerMixin(object):
57 54
    def __init__(self, *args, **kwargs):
58 55
        self.logger = logging.getLogger(__name__)
......
518 515
    def get_form_class(self):
519 516
        form_class = Form
520 517
        if self.must_set_password():
521
            form_class = SET_PASSWORD_FORM_CLASS
518
            form_class = SetPasswordForm
522 519
        return form_class
523 520

  
524 521
    def get_form_kwargs(self, **kwargs):
525
-