Skip to content

Commit 4d1aa38

Browse files
committed
fix login
1 parent 3064ac7 commit 4d1aa38

File tree

4 files changed

+6
-67
lines changed

4 files changed

+6
-67
lines changed

jupyter_server/static/style/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
text-align: center;
1414
}
1515

16+
#password_input {
17+
width: 400px;
18+
}
19+
1620
body {
1721
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
1822
font-size: 13px;

jupyter_server/templates/login.html

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -44,71 +44,6 @@
4444
{% endfor %}
4545
</div>
4646
{% 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 %}
11247
</div>
11348

11449
{% endblock %}

jupyter_server/templates/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
{% block site %}
44
<div id=jupyter-main-app>
5-
<h1>A Elixir Server is running.</h1>
5+
<h1>The Elixir Server is Running.</h1>
66
</div>
77
{% endblock site %}

jupyter_server/templates/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<div id="header-container" class="container">
3737
<div id="jupyter_server" class="nav navbar-brand"><a href="{{default_url}}
3838
{%- if logged_in and token -%}?token={{token}}{%- endif -%}" title='{% trans %}dashboard{% endtrans %}'>
39-
{% block logo %}<img src='{{static_url("logo/logo.png") }}' alt='Jupyter Server' />{% endblock %}
39+
{% block logo %}<img src='{{static_url("logo/logo.png") }}' alt='Elixir Server' />{% endblock %}
4040
</a></div>
4141

4242
{% block headercontainer %}

0 commit comments

Comments
 (0)