diff --git a/lib/livebook_web/live/hub/secret_form_component.ex b/lib/livebook_web/live/hub/secret_form_component.ex index 3e48b7bb5..0a5aac648 100644 --- a/lib/livebook_web/live/hub/secret_form_component.ex +++ b/lib/livebook_web/live/hub/secret_form_component.ex @@ -46,7 +46,7 @@ defmodule LivebookWeb.Hub.SecretFormComponent do phx-debounce class="uppercase" /> - <.text_field + <.password_field field={f[:value]} label="Value" autofocus={@secret_name != nil} diff --git a/lib/livebook_web/live/session_live/secrets_component.ex b/lib/livebook_web/live/session_live/secrets_component.ex index 208aad845..518a5a8b1 100644 --- a/lib/livebook_web/live/session_live/secrets_component.ex +++ b/lib/livebook_web/live/session_live/secrets_component.ex @@ -109,7 +109,7 @@ defmodule LivebookWeb.SessionLive.SecretsComponent do phx-debounce class="uppercase" /> - <.text_field + <.password_field field={f[:value]} label="Value" autofocus={@prefill_secret_name != nil}