django-multifactor icon indicating copy to clipboard operation
django-multifactor copied to clipboard

Bug: MULTIFACTOR["FACTORS"] appears to have no affect

Open StevenMapes opened this issue 5 months ago • 0 comments

In the docs MULTIFACTOR["FACTORS"] is described as controlling what MFA settings can be used however this appears to have no affect as the add.html page has hard set elements for both FIDO2 and TOTP.

The Add class (views.py) is the view for this page and sets a context of "methods" which is read from the KeyTypes choices.

I'm not sure where that's used yet but my current proposal is that we read the settings from app_settings["FACTORS"] and then simple test within the template that the factor is enabled before rendering the block

StevenMapes avatar Sep 30 '25 12:09 StevenMapes