Draft: Two factor auth #118

Open
sonny wants to merge 9 commits from two-factor-auth into development
4 changed files with 5 additions and 1 deletions
Showing only changes of commit 9b38b05a11 - Show all commits

View file

@ -2,6 +2,8 @@ from .base import * # isort:skip
from .version import get_current_version
LOGGING.update({"loggers": {"two_factor": {"handlers": ["console"], "level": "INFO"}}})
SECRET_KEY = "mv4&5#+)-=abz3^&1r^nk_ca6y54--p(4n4cg%z*g&rb64j%wl"
MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware"]

View file

@ -2,6 +2,8 @@ from .base import * # isort:skip
from .version import get_current_version
LOGGING.update({"loggers": {"two_factor": {"handlers": ["console"], "level": "INFO"}}})
SECRET_KEY = "=q(ztyo)b6noom#a164g&s9vcj1aawa^g#ing_ir99=_zl4g&$"
INSTALLED_APPS += ["debug_toolbar", "django_extensions"]

View file

@ -19,7 +19,7 @@ schema_info = openapi.Info(title="Newsreader API", default_version="v1")
schema_view = get_schema_view(schema_info, patterns=api_patterns)
urlpatterns = [
path("", include(two_factor_urls)),
path("", include(two_factor_urls)), # TODO enforce two factor auth
path("", login_required(NewsView.as_view()), name="index"),
path("", include((news_patterns, "news"))),
path("", include((api_patterns, "api"))),