fix: 修复重置mfa 500 bug

pull/7260/head
feng626 3 years ago committed by Jiangjie.Bai
parent 5c6f1730d5
commit 599d58e9f2

@ -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()

Loading…
Cancel
Save