Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Findeton committed Jan 31, 2025
1 parent 98519f6 commit 08bb3ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions iam/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,11 @@ def get(self, request, pk):
if u and error is None:
data = {}
auth_event = get_object_or_404(AuthEvent, pk=pk)
if auth_event.status in [AuthEvent.STOPPED, AuthEvent.SUSPENDED, AuthEvent.SUCCESS]:
return json_response(
status=400,
error_codename=ErrorCodes.BAD_REQUEST
)
req = {}
auth_data = return_auth_data('Ping', req, request, u, auth_event)
if 'auth-token' in auth_data:
Expand Down

0 comments on commit 08bb3ed

Please sign in to comment.