Skip to content

Commit

Permalink
fix bug around fetching user from token
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsailer committed Apr 11, 2023
1 parent b87f96f commit 9b71715
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jupyter_server/auth/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,7 @@ def process_login_form(self, handler: JupyterHandler) -> User | None:
return self.generate_anonymous_user(handler)

if self.token and self.token == typed_password:
# type:ignore[attr-defined]
return self.user_for_token(typed_password)
return self.get_user_token(typed_password) # type:ignore[attr-defined]

return user

Expand Down

0 comments on commit 9b71715

Please sign in to comment.