fix unused imports

This commit is contained in:
Tobias Bengfort
2021-06-23 08:43:09 +02:00
parent 34fcca57c8
commit 84f93444a3
5 changed files with 3 additions and 7 deletions

View File

@@ -6,7 +6,6 @@ import user_agents
from django.conf import settings from django.conf import settings
from django.http import HttpResponse from django.http import HttpResponse
from django.shortcuts import render from django.shortcuts import render
from django.template.context import RequestContext
from django.template.context_processors import csrf from django.template.context_processors import csrf
from django.utils import timezone from django.utils import timezone
from jose import jwt from jose import jwt

View File

@@ -19,6 +19,7 @@ from u2flib_server.u2f import (
complete_registration, complete_registration,
) )
from .Common import get_redirect_url
from .models import User_Keys from .models import User_Keys
from .views import login from .views import login

View File

@@ -1,10 +1,9 @@
import pyotp
import simplejson import simplejson
from django.shortcuts import HttpResponse from django.shortcuts import HttpResponse
from . import FIDO2, U2F, TrustedDevice, totp from . import FIDO2, U2F, TrustedDevice, totp
from .models import User_Keys from .models import User_Keys
from .views import goto, verify from .views import verify
def has_mfa(request, username): def has_mfa(request, username):

View File

@@ -7,11 +7,11 @@ import simplejson
from django.conf import settings from django.conf import settings
from django.http import HttpResponse from django.http import HttpResponse
from django.shortcuts import render from django.shortcuts import render
from django.template.context import RequestContext
from django.template.context_processors import csrf from django.template.context_processors import csrf
from django.utils import timezone from django.utils import timezone
from django.views.decorators.cache import never_cache from django.views.decorators.cache import never_cache
from .Common import get_redirect_url
from .models import User_Keys from .models import User_Keys
from .views import login from .views import login

View File

@@ -1,12 +1,9 @@
import importlib import importlib
from django.conf import settings from django.conf import settings
from django.contrib import auth
from django.contrib.auth.decorators import login_required from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, HttpResponseRedirect from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render from django.shortcuts import render
from django.template.context import RequestContext
from django.template.context_processors import csrf
from user_agents import parse from user_agents import parse
try: try: