perf: During MFA authentication, if the current code has been used and successfully authenticated, it cannot be used again for authentication

This commit is contained in:
feng
2025-02-26 18:43:47 +08:00
committed by Bryan
parent a498b22e80
commit 4b4d7b6787
10 changed files with 35 additions and 18 deletions

View File

@@ -3,7 +3,7 @@
from django.shortcuts import get_object_or_404
from django.utils.translation import gettext as _
from rest_framework import exceptions
from rest_framework.generics import CreateAPIView, RetrieveAPIView
from rest_framework.generics import CreateAPIView
from rest_framework.permissions import AllowAny
from rest_framework.response import Response
from rest_framework.serializers import ValidationError
@@ -23,8 +23,6 @@ __all__ = [
]
# MFASelectAPi 原来的名字
class MFASendCodeApi(AuthMixin, CreateAPIView):
"""