Fix token authentication

This commit is contained in:
Adrian Kretz 2018-05-15 02:24:03 +02:00
parent 1e70df87d0
commit 4bc4e54999

View file

@ -90,7 +90,7 @@ session, along with the login token."
(condition-case err
(with-current-buffer (process-buffer %ein:jupyter-server-session%) ;;ein:jupyter-server-buffer-name
(goto-char (point-max))
(re-search-backward "\\(https?://.*:[0-9]+\\)/\\?token=\\(.*\\)" nil)
(re-search-backward "\\(https?://.*:[0-9]+\\)/\\?token=\\([[:alnum:]]*\\)" nil)
(let ((url-or-port (match-string 1))
(token (match-string 2)))
(list url-or-port token)))