Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bcc1b6 commit e2f8f50Copy full SHA for e2f8f50
IPython/frontend/html/notebook/handlers.py
@@ -442,7 +442,8 @@ def on_open(self, info):
442
self.on_message = self.on_first_message
443
444
def get_current_user(self):
445
- user_id = self.get_secure_cookie(self.settings['cookie_name'])
+ handler = self.session.handler
446
+ user_id = handler.get_secure_cookie(handler.settings['cookie_name'])
447
if user_id == '' or (user_id is None and not self.application.password):
448
user_id = 'anonymous'
449
return user_id
0 commit comments