mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-15 04:58:02 +00:00
[Update] 修改api
This commit is contained in:
@@ -37,3 +37,5 @@ class TokenCreateApi(AuthMixin, CreateAPIView):
|
||||
return resp
|
||||
except errors.AuthFailedError as e:
|
||||
return Response(e.as_data(), status=400)
|
||||
except errors.NeedMoreInfoError as e:
|
||||
return Response(e.as_data(), status=200)
|
||||
|
Reference in New Issue
Block a user