mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
singleuser mixin: include check_xsrf_cookie in overrides
This commit is contained in:
@@ -825,7 +825,7 @@ def patch_base_handler(BaseHandler, log=None):
|
||||
# but we also need to ensure BaseHandler *itself* doesn't
|
||||
# override the public tornado API methods we have inserted.
|
||||
# If they are defined in BaseHandler, explicitly replace them with our methods.
|
||||
for name in ("get_current_user", "get_login_url"):
|
||||
for name in ("get_current_user", "get_login_url", "check_xsrf_cookie"):
|
||||
if name in BaseHandler.__dict__:
|
||||
log.debug(
|
||||
f"Overriding {BaseHandler}.{name} with HubAuthenticatedHandler.{name}"
|
||||
|
Reference in New Issue
Block a user