0004-int-gration-nettoyage-cot-a2-32866.patch
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 |
- |