django-two-factor-auth icon indicating copy to clipboard operation
django-two-factor-auth copied to clipboard

Separating TOTP QR Code and Validation steps?

Open dwasyl opened this issue 2 years ago • 0 comments

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?

dwasyl avatar Dec 08 '21 20:12 dwasyl