django-two-factor-auth
django-two-factor-auth copied to clipboard
Separating TOTP QR Code and Validation steps?
I'd like to change the workflow, to show the QR Code and shared secret on one step of the setup wizard, and then do the TOTP validation on the next step (similar to other device-type setup). These seems to be the more standard workflow based on other implementations of 2FA setup.
It looks like to do this I'll need to subclass SetupView
and have to change the generator
step to not include the existing form and somehow expand the validation
step to validate phone/sms and TOTP devices.
Does anyone know of any good examples of doing this or something similar I could base these changes on?