Metadata-Version: 2.1
Name: django-modal-2fa
Version: 0.0.2
Summary: Django app to implement two factor authentication with bootstrap modals
Home-page: https://github.com/jonesim/django-2fa
Author: Ian Jones
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: django-nested-modals
Requires-Dist: qrcode
Requires-Dist: django-otp

## 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))),    
    ]

