From a322df7b8879afede13ea44963be87ba41a9b344 Mon Sep 17 00:00:00 2001 From: nick2wang Date: Fri, 29 Apr 2022 13:54:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E5=BC=95?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/twofa/__init__.py | 2 -- common/twofa/totp.py | 1 - 2 files changed, 3 deletions(-) diff --git a/common/twofa/__init__.py b/common/twofa/__init__.py index 27d7cd4983..81066f0ef0 100644 --- a/common/twofa/__init__.py +++ b/common/twofa/__init__.py @@ -1,6 +1,4 @@ from sql.models import TwoFactorAuthConfig -from django.conf import settings -import os class TwoFactorAuthBase: diff --git a/common/twofa/totp.py b/common/twofa/totp.py index ab40f62d93..99da59da8d 100644 --- a/common/twofa/totp.py +++ b/common/twofa/totp.py @@ -1,4 +1,3 @@ -from django.shortcuts import get_object_or_404 from django.db import transaction from django.conf import settings from qrcode import QRCode, constants