Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2f8f50

Browse files
committed
fix new cookie name for sockjs
1 parent 1bcc1b6 commit e2f8f50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

IPython/frontend/html/notebook/handlers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,8 @@ def on_open(self, info):
442442
self.on_message = self.on_first_message
443443

444444
def get_current_user(self):
445-
user_id = self.get_secure_cookie(self.settings['cookie_name'])
445+
handler = self.session.handler
446+
user_id = handler.get_secure_cookie(handler.settings['cookie_name'])
446447
if user_id == '' or (user_id is None and not self.application.password):
447448
user_id = 'anonymous'
448449
return user_id

0 commit comments

Comments
 (0)