Skip to content

Commit

Permalink
feat: add "active" field to output and align on field name for username
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterlukasse committed Nov 6, 2024
1 parent 24b357c commit 42530be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fence/blueprints/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def create_user():
Returns a json object
"""
username = request.get_json().get("name", None)
username = request.get_json().get("username", None)
role = request.get_json().get("role", None)
email = request.get_json().get("email", None)
display_name = request.get_json().get("display_name", None)
Expand Down
1 change: 1 addition & 0 deletions fence/resources/user/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def get_user_info(current_session, username):
"phone_number": user.phone_number,
"email": user.email,
"is_admin": user.is_admin,
"active": user.active,
"role": role,
"project_access": dict(user.project_access),
"certificates_uploaded": [],
Expand Down

0 comments on commit 42530be

Please sign in to comment.