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

Add the possibility for the user to change the double authentication

Open lmarion-source opened this issue 5 years ago • 1 comments

Add the possibility for the user to change the double authentication

Description

From the profile view, the user can now switch between Google authenticator/ sms or call method for double authentication.

Motivation and Context

This solves the issue reported in https://github.com/Bouke/django-two-factor-auth/issues/347

How Has This Been Tested?

No new test was added, however the example repository has been updated to take the change into account. This can then be tested locally by using the example repository

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [ X ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [ X ] My code follows the code style of this project.
  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.
  • [x] I have added tests to cover my changes.
  • [ X ] All existing tests passed.

lmarion-source avatar Aug 25 '20 10:08 lmarion-source

I added a bunch of templates because the example was not working initially....a bunch of templates were actually missing to make it work due to a change in the settings for the repository of templates (or I missed something?). I'll write tests.

lmarion-source avatar Aug 25 '20 11:08 lmarion-source