Skip to content

Commit

Permalink
Always use username from IdentityProvider (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski authored Oct 16, 2024
1 parent 21b0bdb commit 6fdbecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jupyter-ai/jupyter_ai/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def get_chat_user(self) -> ChatUser:
login = getpass.getuser()
initials = login[0].capitalize()
return ChatUser(
username=login,
username=self.current_user.username,
initials=initials,
name=login,
display_name=login,
Expand Down

0 comments on commit 6fdbecf

Please sign in to comment.