Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

computing phone method availability is done in different places using different criteria #665

Closed
jpaniagualaconich opened this issue Sep 10, 2023 · 0 comments · Fixed by #666

Comments

@jpaniagualaconich
Copy link
Contributor

Expected Behavior

There should be a single way to check which phone methods are available.

Current Behavior

In some places availability is determined by the presence of 'two_factor.plugins.phonenumber' in INSTALLED_APPS.
Other places take into account also / only values for settings.TWO_FACTOR_CALL_GATEWAY and settings.TWO_FACTOR_SMS_GATEWAY.

Possible Solution

We already have a method registry, which should be the only source of truth.

jpaniagualaconich added a commit to jpaniagualaconich/django-two-factor-auth that referenced this issue Sep 10, 2023
jpaniagualaconich added a commit to jpaniagualaconich/django-two-factor-auth that referenced this issue Sep 10, 2023
jpaniagualaconich added a commit to jpaniagualaconich/django-two-factor-auth that referenced this issue Sep 10, 2023
jpaniagualaconich added a commit to jpaniagualaconich/django-two-factor-auth that referenced this issue Sep 10, 2023
jpaniagualaconich added a commit to jpaniagualaconich/django-two-factor-auth that referenced this issue Sep 10, 2023
jpaniagualaconich added a commit to jpaniagualaconich/django-two-factor-auth that referenced this issue Sep 10, 2023
jpaniagualaconich added a commit to jpaniagualaconich/django-two-factor-auth that referenced this issue Sep 10, 2023
jpaniagualaconich added a commit to jpaniagualaconich/django-two-factor-auth that referenced this issue Sep 10, 2023
jpaniagualaconich added a commit to jpaniagualaconich/django-two-factor-auth that referenced this issue Sep 11, 2023
jpaniagualaconich added a commit to jpaniagualaconich/django-two-factor-auth that referenced this issue Sep 11, 2023
jpaniagualaconich added a commit to jpaniagualaconich/django-two-factor-auth that referenced this issue Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant