Django app to implement two factor authentication with bootstrap modals
Project description
Installation
settings
from modal_2fa.settings_helper import modal_2fa_apps_admin
INSTALLED_APPS += [
*modal_2fa_apps_admin,
]
OTP_TOTP_ISSUER = '**appname**'
AUTHENTICATION_BACKENDS = ['modal_2fa.auth.CookieBackend']
LOGIN_URL ='/auth/login/'
LOGOUT_REDIRECT_URL = '/auth/login'
remove
'django.contrib.auth'
from INSTALLED_APPS
urls
from modal_2fa.utils import get_custom_auth
urlpatterns += [
path('', include(get_custom_auth().paths(include_admin=True))),
]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-modal-2fa-0.0.2.tar.gz
(12.2 kB
view hashes)
Built Distribution
Close
Hashes for django_modal_2fa-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0707b85875171293fc72ec240f1117ebc1556033ecdc5c69f4e3073afa7f268f |
|
MD5 | e773b383e09bb33cdad431c5a16acccb |
|
BLAKE2b-256 | 6ffc8b07c64da731e0ecc4e845247ff7fa5cf2f02a12c3d7134c5e756fde389a |