explain why we decorate /admin login

This commit is contained in:
Jeppe Ernst 2017-12-31 00:16:07 +01:00
parent 456ffa1bea
commit 69f0c8aabd

View file

@ -16,6 +16,7 @@ from people.views import *
from tickets.views import ShopTicketListView from tickets.views import ShopTicketListView
from bar.views import MenuView from bar.views import MenuView
# require 2fa token entry (if enabled on admin account) when logging into /admin by using allauth login form
admin.site.login = login_required(admin.site.login) admin.site.login = login_required(admin.site.login)
urlpatterns = [ urlpatterns = [