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

Add TOTP to admin panel #1372

Closed
wants to merge 3 commits into from
Closed

Add TOTP to admin panel #1372

wants to merge 3 commits into from

Conversation

KoalaSat
Copy link
Member

@KoalaSat KoalaSat commented Jul 8, 2024

What does this PR do?

Includes TOTP as part of the admin login, admin users with no TOTP associated can still login as normal

Checklist before merging

  • Install pre-commit and initialize it: pip install pre-commit, then pre-commit install. Pre-commit installs git hooks that automatically check the codebase. If pre-commit fails when you commit your changes, please fix the problems it points out.


admin_site = OTPAdmin(name="OTPAdmin")
for model in apps.get_models():
admin_site.register(model)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This includes more (hidden) models than the normal admin view, but honestly I found them useful

@KoalaSat KoalaSat closed this Aug 5, 2024
@KoalaSat KoalaSat deleted the add-totp-to-admin-panel branch August 5, 2024 10:46
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 this pull request may close these issues.

1 participant