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

urls for phone setup and delete are botched #655

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

urls for phone setup and delete are botched #655

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

Comments

@jpaniagualaconich
Copy link
Contributor

jpaniagualaconich commented Sep 10, 2023

Expected Behavior

They should be:

  • '/account/two_factor/phone/register/'
  • '/account/two_factor/phone/unregister/42/'.

Current Behavior

They are:

  • '/account/two_factor/phone/account/two_factor/backup/phone/register/'
  • '/account/two_factor/phone/account/two_factor/backup/phone/unregister/42/'.

Steps to Reproduce (for bugs)

$ DJANGO_SETTINGS_MODULE=tests.settings PYTHONPATH=. django-admin shell
>>> from django.urls import reverse
>>> reverse('two_factor:phone_create')
'/account/two_factor/phone/account/two_factor/backup/phone/register/'
>>> reverse('two_factor:phone_delete', args=(42,))
'/account/two_factor/phone/account/two_factor/backup/phone/unregister/42/'
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 Oct 1, 2023
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