mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 15:11:27 +00:00
fix: 修复重置mfa 500 bug
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user