2-Factor Authentication for Django projects
Project description
django-j2fa
2-factor SMS authentication for Django projects.
Install
Add ‘j2fa’ to project settings INSTALLED_APPS
Add j2fa.middleware.Ensure2FactorAuthenticatedMiddleware to project settings MIDDLEWARE (after session middleware)
Make sure user.profile.phone resolves to phone number and user.profile.require_2fa resolves to True/False
Set project settings SMS_TOKEN and SMS_SENDER_NAME
Add TwoFactorAuth.as_view() to urls with name=’j2fa-obtain-auth’
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-j2fa-2.2.1.tar.gz
(9.6 kB
view hashes)