diff --git a/elixir/README.md b/elixir/README.md index 8badf4d20..848a37272 100644 --- a/elixir/README.md +++ b/elixir/README.md @@ -300,7 +300,7 @@ Interactive Elixir (1.15.2) - press Ctrl+C to exit (type h() ENTER for help) iex(web@web-3vmw.us-east1-d.c.firezone-staging.internal)1> {:ok, account} = Domain.Accounts.create_account(%{name: "Firezone", slug: "firezone"}) {:ok, ...} -iex(web@web-3vmw.us-east1-d.c.firezone-staging.internal)2> {:ok, magic_link_provider} = Domain.Auth.create_provider(account, %{name: "Magic Link", adapter: :email, adapter_config: %{}}) +iex(web@web-3vmw.us-east1-d.c.firezone-staging.internal)2> {:ok, magic_link_provider} = Domain.Auth.create_provider(account, %{name: "Email", adapter: :email, adapter_config: %{}}) {:ok, ...} iex(web@web-3vmw.us-east1-d.c.firezone-staging.internal)3> {:ok, actor} = Domain.Actors.create_actor(account, %{type: :account_admin_user, name: "Andrii Dryga"}) diff --git a/elixir/apps/domain/lib/domain/config/definitions.ex b/elixir/apps/domain/lib/domain/config/definitions.ex index 74fac02f2..15fc2a695 100644 --- a/elixir/apps/domain/lib/domain/config/definitions.ex +++ b/elixir/apps/domain/lib/domain/config/definitions.ex @@ -100,7 +100,7 @@ defmodule Domain.Config.Definitions do Providers: * `openid_connect` is used to authenticate users via OpenID Connect, this is recommended for production use; - * `email` is used to authenticate users via magic links sent to the email; + * `email` is used to authenticate users via sign in tokens sent to the email; * `token` is used to authenticate service accounts using an API token; * `userpass` is used to authenticate users with username and password, should be used with extreme care and is not recommended for production use. @@ -460,7 +460,7 @@ defmodule Domain.Config.Definitions do ) ############################################## - ## Userpass / SAML / OIDC / Magic Link authentication + ## Userpass / SAML / OIDC / Email authentication ############################################## @doc """ diff --git a/elixir/apps/web/lib/web/controllers/auth_controller.ex b/elixir/apps/web/lib/web/controllers/auth_controller.ex index 0617b34c6..04cc9e921 100644 --- a/elixir/apps/web/lib/web/controllers/auth_controller.ex +++ b/elixir/apps/web/lib/web/controllers/auth_controller.ex @@ -170,7 +170,7 @@ defmodule Web.AuthController do redirect_params = put_if_not_empty(redirect_params, "provider_identifier", identity_id) conn - |> put_flash(:error, "The sign in link is invalid or expired.") + |> put_flash(:error, "The sign in token is invalid or expired.") |> redirect( to: ~p"/#{account_id_or_slug}/sign_in/providers/email/#{provider_id}?#{redirect_params}" ) diff --git a/elixir/apps/web/lib/web/live/settings/identity_providers/components.ex b/elixir/apps/web/lib/web/live/settings/identity_providers/components.ex index 90c172ee8..57c3c1899 100644 --- a/elixir/apps/web/lib/web/live/settings/identity_providers/components.ex +++ b/elixir/apps/web/lib/web/live/settings/identity_providers/components.ex @@ -125,7 +125,7 @@ defmodule Web.Settings.IdentityProviders.Components do """ end - def adapter_name(:email), do: "Magic Link" + def adapter_name(:email), do: "Email" def adapter_name(:userpass), do: "Username & Password" def adapter_name(:token), do: "API Access Token" def adapter_name(:workos), do: "WorkOS" diff --git a/elixir/apps/web/lib/web/live/sign_in.ex b/elixir/apps/web/lib/web/live/sign_in.ex index 5888ac27c..b6931ffb4 100644 --- a/elixir/apps/web/lib/web/live/sign_in.ex +++ b/elixir/apps/web/lib/web/live/sign_in.ex @@ -85,7 +85,7 @@ defmodule Web.SignIn do <:item :if={adapter_enabled?(@providers_by_adapter, :email)}>
- Should the provided email be registered, a sign-in link and token are dispatched to your email account. - Please copy and paste this token into the form below to proceed with your login. + Should the provided email be registered, a sign in token has been sent to your email account. + Please copy and paste this into the form below to proceed with your login.