Browse Source

fix: 终端输入错误的MFA无日志记录

pull/12539/head
wangruidong 11 months ago committed by Bryan
parent
commit
000a3038e1
  1. 2
      apps/authentication/api/mfa.py

2
apps/authentication/api/mfa.py

@ -90,6 +90,6 @@ class MFAChallengeVerifyApi(AuthMixin, CreateAPIView):
return Response({'msg': 'ok'})
except errors.AuthFailedError as e:
data = {"error": e.error, "msg": e.msg}
raise ValidationError(data)
return Response(data, status=401)
except errors.NeedMoreInfoError as e:
return Response(e.as_data(), status=200)

Loading…
Cancel
Save