diff --git a/notebook/templates/login.html b/notebook/templates/login.html index c3b2bef72..1cf0a3fad 100644 --- a/notebook/templates/login.html +++ b/notebook/templates/login.html @@ -20,7 +20,7 @@
- {% elif login_token_available %} -- This notebook server has no password set, - but token-authentication is enabled. - - You need to open the notebook server with its first-time login token in the URL, - or enable a password in order to gain access. - The command: -
-jupyter notebook list-
- will show you the URLs of running servers with their tokens, - which you can copy and paste into your browser. -
-No login available, you shouldn't be seeing this page.
{% endif %} @@ -58,6 +42,28 @@ {% endfor %} {% endif %} + {% block token_message %} ++ If this notebook server has no password set, token authentication is enabled. + + You need to open the notebook server with its first-time login token in the URL, + or enable a password in order to gain access. + The command: +
+jupyter notebook list+
+ will show you the URLs of running servers with their tokens, + which you can copy and paste into your browser. For example: +
+Currently running servers: +http://localhost:8888/?token=c8de56fa... :: /Users/you/notebooks ++
+ Or you can paste just the token value into the password field on this page. +
+