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

Feature request: Setting to disable two_factor in dev #676

Open
vaughnkoch opened this issue Oct 18, 2023 · 2 comments
Open

Feature request: Setting to disable two_factor in dev #676

vaughnkoch opened this issue Oct 18, 2023 · 2 comments

Comments

@vaughnkoch
Copy link

Hi, thanks for this useful library :)

I could be missing something from the docs or SO, but is there a single settings.py option to disable two_factor just in dev mode? I frequently reset my dev db and it's tedious to have to enter a new 2fa code every time. It would be nice to have an option just to go to the standard Django admin page without two_factor.

@anchit-chandran
Copy link

Bump^ for this if possible :) I tried reading the email code that's logged to console directly into the form but couldn't get this to work

@Viicos
Copy link
Contributor

Viicos commented Jan 17, 2024

If you have multiple settings modules per environment, you can set the LOGIN_URL and TWO_FACTOR_PATCH_ADMIN accordingly there. If not, maybe by setting TWO_FACTOR_PATCH_ADMIN = not DEBUG or similar?

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

No branches or pull requests

3 participants