Skip to content

Does not work with Wagtail 6 and 7. #231

@ravigupta-design

Description

@ravigupta-design

I tried to implement wagtail-2fa using the documentation here: https://wagtail-2fa.readthedocs.io/en/latest/

I am getting this error after enrolling and trying to logging again:

TemplateSyntaxError at /admin/2fa/auth

Invalid block tag on line 34: 'field', expected 'endblock'. Did you forget to register or load this tag?

Request Method: GET
Request URL: [http://localhost:8000/admin/2fa/auth?next=/admin/](vscode-file://vscode-app/c:/Users/ravig/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)
Django Version: 5.2.1
Exception Type: TemplateSyntaxError
Exception Value:

After overriding the template at ...//templates/wagtail_2fa/otp_form.html it worked.

But, I am also getting the following error when trying to access the user tab on admin section:

TypeError at /admin/users/

register_user_listing_buttons() got an unexpected keyword argument 'request_user'

Request Method: GET
Request URL: [http://localhost:8000/admin/users/](vscode-file://vscode-app/c:/Users/ravig/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)
Django Version: 5.2.1
Exception Type: TypeError
Exception Value:

register_user_listing_buttons() got an unexpected keyword argument 'request_user'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions