Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions infogami/infobase/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,8 @@ def reset_password(self, username, code, password):
)

def get_user(self):
# avoid hitting infobase when there is no cookie.
if web.cookies().get(config.login_cookie_name) is None:
# avoid hitting infobase when there is no auth token set.
if self._conn.get_auth_token() is None:
return None
try:
data = self._request('/account/get_user')
Expand Down