mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-11-12 15:11:47 +08:00
Improve token auth form instructions in the desktop app (#2804)
Co-authored-by: José Valim <jose.valim@dashbit.co>
This commit is contained in:
parent
01af89d2f1
commit
61eea06247
1 changed files with 17 additions and 9 deletions
|
|
@ -7,19 +7,27 @@
|
||||||
Authentication required
|
Authentication required
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-8 text-sm text-gray-200 space-y-2">
|
<div class="mb-8 text-sm text-gray-200">
|
||||||
<p :if={@authentication_mode == :password}>
|
<p :if={@authentication_mode == :password}>
|
||||||
Type password to access the Livebook.
|
Type password to access the Livebook.
|
||||||
</p>
|
</p>
|
||||||
<p :if={@authentication_mode == :token}>
|
<div :if={@authentication_mode == :token} class="space-y-2">
|
||||||
|
<%= if Livebook.Config.app?() do %>
|
||||||
|
<p>
|
||||||
|
Please open Livebook menu in your taskbar, click "Copy URL", and paste it in your browser's address bar.
|
||||||
|
</p>
|
||||||
|
<% else %>
|
||||||
|
<p>
|
||||||
Please check out the console for authentication URL or type the token directly
|
Please check out the console for authentication URL or type the token directly
|
||||||
here.
|
here.
|
||||||
</p>
|
</p>
|
||||||
<p :if={@authentication_mode == :token}>
|
<% end %>
|
||||||
|
<p>
|
||||||
To use password authentication, set the <code>LIVEBOOK_PASSWORD</code>
|
To use password authentication, set the <code>LIVEBOOK_PASSWORD</code>
|
||||||
environment variable.
|
environment variable.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="text-gray-50 w-full">
|
<div class="text-gray-50 w-full">
|
||||||
<form method="post" class="flex flex-col w-full">
|
<form method="post" class="flex flex-col w-full">
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue