django-two-factor-auth
django-two-factor-auth copied to clipboard
[Question] How to logout user after 2FA setup?
I want the user to log out immediately after they have set up the 2FA. And login again via the 2FA setup codes they have just setup.
Currently, once they have set up the 2fa code, they are redirected to the "account security page" and stay logged in.
How can I force them to logout once the 2fa setup is done?