mirror of https://github.com/jumpserver/jumpserver
fix: 修复重置mfa 500 bug
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…
Reference in New Issue