mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 06:22:59 +00:00
Fixed missing variable
This commit is contained in:
@@ -156,8 +156,9 @@ class HubAuth(Configurable):
|
|||||||
app_log.warning("Failed to check authorization: [%i] %s", r.status_code, r.reason)
|
app_log.warning("Failed to check authorization: [%i] %s", r.status_code, r.reason)
|
||||||
raise HTTPError(500, "Failed to check authorization")
|
raise HTTPError(500, "Failed to check authorization")
|
||||||
else:
|
else:
|
||||||
|
data = r.json()
|
||||||
app_log.debug("Received request from Hub user %s", data)
|
app_log.debug("Received request from Hub user %s", data)
|
||||||
return r.json()
|
return data
|
||||||
|
|
||||||
def user_for_cookie(self, encrypted_cookie, use_cache=True):
|
def user_for_cookie(self, encrypted_cookie, use_cache=True):
|
||||||
"""Ask the Hub to identify the user for a given cookie.
|
"""Ask the Hub to identify the user for a given cookie.
|
||||||
|
Reference in New Issue
Block a user