Skip to main content

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)

Uploaded Source

Built Distribution

django_modal_2fa-0.0.2-py3-none-any.whl (19.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page