require 2fa for /admin pages
if the user has enabled 2fa
This commit is contained in:
parent
f313935e6f
commit
7c5c8f6ac7
|
@ -5,6 +5,7 @@ from allauth.account.views import (
|
|||
from django.conf import settings
|
||||
from django.conf.urls import include, url
|
||||
from django.contrib import admin
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from camps.views import *
|
||||
from info.views import *
|
||||
from villages.views import *
|
||||
|
@ -15,6 +16,8 @@ from people.views import *
|
|||
from tickets.views import ShopTicketListView
|
||||
from bar.views import MenuView
|
||||
|
||||
admin.site.login = login_required(admin.site.login)
|
||||
|
||||
urlpatterns = [
|
||||
url(
|
||||
r'^profile/',
|
||||
|
|
Loading…
Reference in a new issue