Skip to content

Commit d1bbcc1

Browse files
heysamtexasclaude
andcommitted
refactor: replace internal require2fa app with PyPI package
## Migration to PyPI Package Successfully migrated from internal require2fa app to published django-allauth-require2fa package (v1.2.0) from PyPI. ## Changes Made - Add django-allauth-require2fa to pyproject.toml dependencies - Keep require2fa in INSTALLED_APPS (package installs as require2fa module) - Keep require2fa.middleware.Require2FAMiddleware path (same import) - Verified existing TwoFactorConfig data is preserved and accessible ## Benefits - ✅ Use community-maintained package instead of internal code - ✅ Simplified maintenance and updates via PyPI - ✅ Zero configuration changes needed (seamless transition) - ✅ Existing 2FA settings preserved (required=True verified) ## Next Steps The internal src/require2fa/ directory can now be safely removed since the PyPI package provides identical functionality. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent cc70035 commit d1bbcc1

File tree

2 files changed

+141
-93
lines changed

2 files changed

+141
-93
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ dependencies = [
3131
"whitenoise==6.9.0",
3232
"PyJWT==2.10.1",
3333
"django-allauth[mfa,socialaccount]",
34+
"django-allauth-require2fa",
3435
]
3536

3637
[project.optional-dependencies]

0 commit comments

Comments
 (0)