Skip to content

Commit

Permalink
User registration: default display name to GitHub username when no pr…
Browse files Browse the repository at this point in the history
…ofile name is set (closes #652) (#655)
  • Loading branch information
ml-evs authored Mar 21, 2024
1 parent 0d1e12c commit 733a175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydatalab/pydatalab/routes/v0_1/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def github_logged_in(blueprint, token):
github_info = resp.json()
github_user_id = str(github_info["id"])
username = str(github_info["login"])
name = str(github_info["name"])
name = str(github_info["name"] if github_info["name"] is not None else github_info["login"])

create_account: bool = False
# Use the read:org scope to check if the user is a member of at least one of the allowed orgs
Expand Down

0 comments on commit 733a175

Please sign in to comment.