fix unused imports
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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):
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user