diff --git a/passbook/core/requirements.txt b/passbook/core/requirements.txt index 9c4eab3b7..0c22aad72 100644 --- a/passbook/core/requirements.txt +++ b/passbook/core/requirements.txt @@ -4,4 +4,5 @@ PyYAML raven djangorestframework markdown -django-model-utils \ No newline at end of file +django-model-utils +colorlog \ No newline at end of file diff --git a/passbook/core/settings.py b/passbook/core/settings.py index b83168d3e..f788ea706 100644 --- a/passbook/core/settings.py +++ b/passbook/core/settings.py @@ -60,6 +60,8 @@ INSTALLED_APPS = [ 'passbook.ldap', 'passbook.oauth_client', 'passbook.oauth_provider', + 'passbook.saml_idp', + 'passbook.tfa', ] REST_FRAMEWORK = { diff --git a/passbook/core/templates/login/base.html b/passbook/core/templates/login/base.html index 902fc6fc6..2ea0cf597 100644 --- a/passbook/core/templates/login/base.html +++ b/passbook/core/templates/login/base.html @@ -20,7 +20,6 @@ {% block card %} {% endblock %} -
{% if not state %} - {% trans "Enable 2FA" %} + {% trans "Enable 2FA" %} {% else %} - {% trans "Disable 2FA" %} + {% trans "Disable 2FA" %} {% endif %}
diff --git a/passbook/tfa/templates/tfa/wizard_setup_static.html b/passbook/tfa/templates/tfa/wizard_setup_static.html index fb239cd1a..19ab8efae 100644 --- a/passbook/tfa/templates/tfa/wizard_setup_static.html +++ b/passbook/tfa/templates/tfa/wizard_setup_static.html @@ -1,6 +1,6 @@ {% extends "generic/wizard.html" %} -{% load supervisr_utils %} +{% load utils %} {% block title %} {% title "Setup" %} diff --git a/passbook/tfa/tests/test_middleware.py b/passbook/tfa/tests/test_middleware.py index 309edec44..d1b03a36d 100644 --- a/passbook/tfa/tests/test_middleware.py +++ b/passbook/tfa/tests/test_middleware.py @@ -1,6 +1,4 @@ -""" -Supervisr Mod 2FA Middleware Test -""" +"""passbook Mod 2FA Middleware Test""" import os @@ -8,23 +6,19 @@ from django.contrib.auth.models import AnonymousUser from django.test import RequestFactory, TestCase from django.urls import reverse -from supervisr.core.views import common -from supervisr.mod.tfa.middleware import tfa_force_verify +from passbook.core.views import common +from passbook.tfa.middleware import tfa_force_verify class TestMiddleware(TestCase): - """ - Supervisr 2FA Middleware Test - """ + """passbook 2FA Middleware Test""" def setUp(self): os.environ['RECAPTCHA_TESTING'] = 'True' self.factory = RequestFactory() def test_tfa_force_verify_anon(self): - """ - Test Anonymous TFA Force - """ + """Test Anonymous TFA Force""" request = self.factory.get(reverse('common-index')) request.user = AnonymousUser() response = tfa_force_verify(common.IndexView.as_view())(request) diff --git a/requirements-dev.txt b/requirements-dev.txt index 4282169bb..8c8566211 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,6 @@ pylint +pylint-django isort autopep8 -django-debug-toolbar \ No newline at end of file +django-debug-toolbar +-r requirements.txt \ No newline at end of file