Skip to content

Commit

Permalink
Update auth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Jan 18, 2025
1 parent 8d40c66 commit bb246d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/authx/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,9 +812,10 @@ def approve_pending_user_in_opa(user_name):
if status_code == 200:
pending_users.pop(user_name)
response3, status_code = set_service_store_secret("opa", key=f"pending_users", value=json.dumps(response))
return {"message": f"User {user_name} has been approved"}, status_code
return response2, status_code
else:
return {"error": f"no pending user with ID {user_name}"}, 404
return response, status_code


def reject_pending_user_in_opa(user_name):
Expand Down

0 comments on commit bb246d7

Please sign in to comment.