|
44 | 44 | {% endfor %} |
45 | 45 | </div> |
46 | 46 | {% endif %} |
47 | | - {% if token_available %} |
48 | | - {% block token_message %} |
49 | | - <div class="col-sm-6 col-sm-offset-3 text-left rendered_html"> |
50 | | - <h3> |
51 | | - Token authentication is enabled |
52 | | - </h3> |
53 | | - <p> |
54 | | - If no password has been configured, you need to open the |
55 | | - server with its login token in the URL, or paste it above. |
56 | | - This requirement will be lifted if you |
57 | | - <b><a href='https://jupyter-server.readthedocs.io/en/latest/operators/public-server.html'> |
58 | | - enable a password</a></b>. |
59 | | - </p> |
60 | | - <p> |
61 | | - The command: |
62 | | - <pre>jupyter server list</pre> |
63 | | - will show you the URLs of running servers with their tokens, |
64 | | - which you can copy and paste into your browser. For example: |
65 | | - </p> |
66 | | - <pre>Currently running servers: |
67 | | -http://localhost:8888/?token=c8de56fa... :: /Users/you/notebooks |
68 | | -</pre> |
69 | | - <p> |
70 | | - or you can paste just the token value into the password field on this |
71 | | - page. |
72 | | - </p> |
73 | | - <p> |
74 | | - See |
75 | | - <b><a href='https://jupyter-server.readthedocs.io/en/latest/operators/public-server.html'> |
76 | | - the documentation on how to enable a password</a> |
77 | | - </b> |
78 | | - in place of token authentication, |
79 | | - if you would like to avoid dealing with random tokens. |
80 | | - </p> |
81 | | - <p> |
82 | | - Cookies are required for authenticated access to the Jupyter server. |
83 | | - </p> |
84 | | - {% if allow_password_change %} |
85 | | - <h3>{% trans %}Setup a Password{% endtrans %}</h3> |
86 | | - <p> You can also setup a password by entering your token and a new password |
87 | | - on the fields below:</p> |
88 | | - <form action="{{base_url}}login?next={{next}}" method="post" class=""> |
89 | | - {{ xsrf_form_html() | safe }} |
90 | | - <div class="form-group"> |
91 | | - <label for="token_input"> |
92 | | - <h4>Token</h4> |
93 | | - </label> |
94 | | - <input type="password" name="password" id="token_input" class="form-control"> |
95 | | - </div> |
96 | | - <div class="form-group"> |
97 | | - <label for="new_password_input"> |
98 | | - <h4>New Password</h4> |
99 | | - </label> |
100 | | - <input type="password" name="new_password" id="new_password_input" class="form-control" required> |
101 | | - </div> |
102 | | - <div class="form-group"> |
103 | | - <button type="submit" class="btn btn-default" id="login_new_pass_submit">{% trans %}Log in and set new |
104 | | - password{% endtrans %}</button> |
105 | | - </div> |
106 | | - </form> |
107 | | - {% endif %} |
108 | | - |
109 | | - </div> |
110 | | - {% endblock token_message %} |
111 | | - {% endif %} |
112 | 47 | </div> |
113 | 48 |
|
114 | 49 | {% endblock %} |
|
0 commit comments