Improve token auth form instructions in the desktop app (#2804)

Co-authored-by: José Valim <jose.valim@dashbit.co>
This commit is contained in:
Jonatan Kłosko 2024-09-30 16:00:28 +02:00
parent 01af89d2f1
commit 61eea06247

View file

@ -7,19 +7,27 @@
Authentication required
</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}>
Type password to access the Livebook.
</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
here.
</p>
<p :if={@authentication_mode == :token}>
<% end %>
<p>
To use password authentication, set the <code>LIVEBOOK_PASSWORD</code>
environment variable.
</p>
</div>
</div>
<div class="text-gray-50 w-full">
<form method="post" class="flex flex-col w-full">