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'
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:
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: