fix: 修复重置mfa 500 bug

pull/7260/head
feng626 2021-11-23 15:11:52 +08:00 committed by Jiangjie.Bai
parent 5c6f1730d5
commit 599d58e9f2
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ class UserResetMFAApi(UserQuerysetMixin, generics.RetrieveAPIView):
return Response({"error": msg}, status=401)
backends = user.active_mfa_backends_mapper
for backend in backends:
for backend in backends.values():
if backend.can_disable():
backend.disable()