From 61eea06247543209524997e1a935172f59d01686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Mon, 30 Sep 2024 16:00:28 +0200 Subject: [PATCH] Improve token auth form instructions in the desktop app (#2804) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: José Valim --- .../controllers/auth_html/index.html.heex | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/lib/livebook_web/controllers/auth_html/index.html.heex b/lib/livebook_web/controllers/auth_html/index.html.heex index f064fb27a..fe1c61189 100644 --- a/lib/livebook_web/controllers/auth_html/index.html.heex +++ b/lib/livebook_web/controllers/auth_html/index.html.heex @@ -7,18 +7,26 @@ Authentication required -
+

Type password to access the Livebook.

-

- Please check out the console for authentication URL or type the token directly - here. -

-

- To use password authentication, set the LIVEBOOK_PASSWORD - environment variable. -

+
+ <%= if Livebook.Config.app?() do %> +

+ Please open Livebook menu in your taskbar, click "Copy URL", and paste it in your browser's address bar. +

+ <% else %> +

+ Please check out the console for authentication URL or type the token directly + here. +

+ <% end %> +

+ To use password authentication, set the LIVEBOOK_PASSWORD + environment variable. +

+