From af69e841bc54e2a8ba80f754c040bb16666f33ca Mon Sep 17 00:00:00 2001 From: Jamil Date: Tue, 6 Feb 2024 07:26:09 -0800 Subject: [PATCH] refactor(portal): log in -> sign in (#3577) Just making naming a little more consistent --- elixir/apps/web/lib/web/auth.ex | 4 ++-- elixir/apps/web/lib/web/live/actors/new.ex | 2 +- elixir/apps/web/test/web/acceptance/auth/email_test.exs | 6 +++--- .../web/test/web/acceptance/auth/openid_connect_test.exs | 4 ++-- .../apps/web/test/web/acceptance/auth/userpass_test.exs | 8 ++++---- elixir/apps/web/test/web/auth_test.exs | 2 +- elixir/apps/web/test/web/live/actors/edit_test.exs | 4 ++-- elixir/apps/web/test/web/live/actors/index_test.exs | 2 +- elixir/apps/web/test/web/live/actors/new_test.exs | 2 +- .../live/actors/service_accounts/new_identity_test.exs | 2 +- .../test/web/live/actors/service_accounts/new_test.exs | 2 +- elixir/apps/web/test/web/live/actors/show_test.exs | 2 +- .../web/test/web/live/actors/users/new_identity_test.exs | 2 +- elixir/apps/web/test/web/live/actors/users/new_test.exs | 2 +- elixir/apps/web/test/web/live/clients/edit_test.exs | 2 +- elixir/apps/web/test/web/live/clients/index_test.exs | 2 +- elixir/apps/web/test/web/live/clients/show_test.exs | 2 +- elixir/apps/web/test/web/live/gateways/show_test.exs | 2 +- elixir/apps/web/test/web/live/groups/edit_actors_test.exs | 2 +- elixir/apps/web/test/web/live/groups/edit_test.exs | 2 +- elixir/apps/web/test/web/live/groups/index_test.exs | 2 +- elixir/apps/web/test/web/live/groups/new_test.exs | 2 +- elixir/apps/web/test/web/live/groups/show_test.exs | 2 +- elixir/apps/web/test/web/live/policies/edit_test.exs | 2 +- elixir/apps/web/test/web/live/policies/index_test.exs | 2 +- elixir/apps/web/test/web/live/policies/new_test.exs | 2 +- elixir/apps/web/test/web/live/policies/show_test.exs | 2 +- elixir/apps/web/test/web/live/relay_groups/edit_test.exs | 2 +- elixir/apps/web/test/web/live/relay_groups/index_test.exs | 2 +- elixir/apps/web/test/web/live/relay_groups/new_test.exs | 2 +- elixir/apps/web/test/web/live/relay_groups/show_test.exs | 2 +- elixir/apps/web/test/web/live/relays/show_test.exs | 2 +- elixir/apps/web/test/web/live/resources/edit_test.exs | 2 +- elixir/apps/web/test/web/live/resources/index_test.exs | 2 +- elixir/apps/web/test/web/live/resources/new_test.exs | 2 +- elixir/apps/web/test/web/live/resources/show_test.exs | 2 +- .../web/test/web/live/settings/account/index_test.exs | 2 +- elixir/apps/web/test/web/live/settings/dns/index_test.exs | 2 +- .../identity_providers/google_workspace/connect_test.exs | 2 +- .../identity_providers/google_workspace/edit_test.exs | 2 +- .../identity_providers/google_workspace/new_test.exs | 2 +- .../identity_providers/google_workspace/show_test.exs | 2 +- .../web/live/settings/identity_providers/index_test.exs | 2 +- .../web/live/settings/identity_providers/new_test.exs | 2 +- .../identity_providers/openid_connect/connect_test.exs | 2 +- .../identity_providers/openid_connect/edit_test.exs | 2 +- .../identity_providers/openid_connect/new_test.exs | 2 +- .../identity_providers/openid_connect/show_test.exs | 2 +- .../live/settings/identity_providers/system/show_test.exs | 2 +- elixir/apps/web/test/web/live/sites/edit_test.exs | 2 +- elixir/apps/web/test/web/live/sites/index_test.exs | 2 +- elixir/apps/web/test/web/live/sites/new_test.exs | 2 +- elixir/apps/web/test/web/live/sites/show_test.exs | 2 +- 53 files changed, 61 insertions(+), 61 deletions(-) diff --git a/elixir/apps/web/lib/web/auth.ex b/elixir/apps/web/lib/web/auth.ex index f7a55d2e3..fb9bb2862 100644 --- a/elixir/apps/web/lib/web/auth.ex +++ b/elixir/apps/web/lib/web/auth.ex @@ -465,7 +465,7 @@ defmodule Web.Auth do redirect_params = maybe_store_return_to(conn) conn - |> Phoenix.Controller.put_flash(:error, "You must log in to access this page.") + |> Phoenix.Controller.put_flash(:error, "You must sign in to access this page.") |> Phoenix.Controller.redirect( to: ~p"/#{conn.path_params["account_id_or_slug"]}?#{redirect_params}" ) @@ -558,7 +558,7 @@ defmodule Web.Auth do else socket = socket - |> Phoenix.LiveView.put_flash(:error, "You must log in to access this page.") + |> Phoenix.LiveView.put_flash(:error, "You must sign in to access this page.") |> Phoenix.LiveView.redirect(to: ~p"/#{params["account_id_or_slug"]}") {:halt, socket} diff --git a/elixir/apps/web/lib/web/live/actors/new.ex b/elixir/apps/web/lib/web/live/actors/new.ex index ab58b7464..dd81beee3 100644 --- a/elixir/apps/web/lib/web/live/actors/new.ex +++ b/elixir/apps/web/lib/web/live/actors/new.ex @@ -34,7 +34,7 @@ defmodule Web.Actors.New do account={@account} type={:user} name="User" - description="Admin or regular user accounts can be used to log in to Firezone and access private resources." + description="Admin or regular user accounts can be used to sign in to Firezone and access private resources." /> <.option account={@account} diff --git a/elixir/apps/web/test/web/acceptance/auth/email_test.exs b/elixir/apps/web/test/web/acceptance/auth/email_test.exs index 5d77253a8..d72328589 100644 --- a/elixir/apps/web/test/web/acceptance/auth/email_test.exs +++ b/elixir/apps/web/test/web/acceptance/auth/email_test.exs @@ -17,7 +17,7 @@ defmodule Web.Acceptance.SignIn.EmailTest do |> assert_el(Query.text("Please check your email")) end - feature "allows to log in using email link to the portal", %{session: session} do + feature "allows to sign in using email link to the portal", %{session: session} do Domain.Config.put_env_override(:outbound_email_adapter_configured?, true) account = Fixtures.Accounts.create_account() @@ -37,7 +37,7 @@ defmodule Web.Acceptance.SignIn.EmailTest do |> Auth.assert_authenticated(identity) end - feature "allows to log in using email link to the client", %{session: session} do + feature "allows to sign in using email link to the client", %{session: session} do Domain.Config.put_env_override(:outbound_email_adapter_configured?, true) nonce = Ecto.UUID.generate() state = Ecto.UUID.generate() @@ -83,7 +83,7 @@ defmodule Web.Acceptance.SignIn.EmailTest do assert {:ok, _subject} = Domain.Auth.authenticate(token, context) end - feature "allows to log in using email link to the client even with active browser session", %{ + feature "allows to sign in using email link to the client even with active browser session", %{ session: session } do Auth.mock_client_sign_in_callback() diff --git a/elixir/apps/web/test/web/acceptance/auth/openid_connect_test.exs b/elixir/apps/web/test/web/acceptance/auth/openid_connect_test.exs index e413d91a7..44c9042c8 100644 --- a/elixir/apps/web/test/web/acceptance/auth/openid_connect_test.exs +++ b/elixir/apps/web/test/web/acceptance/auth/openid_connect_test.exs @@ -139,7 +139,7 @@ defmodule Web.Acceptance.Auth.OpenIDConnectTest do assert {:ok, _subject} = Domain.Auth.authenticate(token, context) end - feature "allows to log in to the browser and then to the client", %{ + feature "allows to sign in to the browser and then to the client", %{ session: session } do nonce = Ecto.UUID.generate() @@ -201,7 +201,7 @@ defmodule Web.Acceptance.Auth.OpenIDConnectTest do assert account_id == account.id end - feature "allows to log in to the client and then to the browser", %{ + feature "allows to sign in to the client and then to the browser", %{ session: session } do nonce = Ecto.UUID.generate() diff --git a/elixir/apps/web/test/web/acceptance/auth/userpass_test.exs b/elixir/apps/web/test/web/acceptance/auth/userpass_test.exs index 8542e82a1..66a5e083f 100644 --- a/elixir/apps/web/test/web/acceptance/auth/userpass_test.exs +++ b/elixir/apps/web/test/web/acceptance/auth/userpass_test.exs @@ -94,7 +94,7 @@ defmodule Web.Acceptance.Auth.UserPassTest do |> assert_error_flash("Invalid username or password.") end - feature "redirects to actors index after successful log in as account_admin_user", %{ + feature "redirects to actors index after successful sign in as account_admin_user", %{ session: session } do account = Fixtures.Accounts.create_account() @@ -116,7 +116,7 @@ defmodule Web.Acceptance.Auth.UserPassTest do |> Auth.assert_authenticated(identity) end - feature "redirects back to sign_in page after successful log in as account_user", %{ + feature "redirects back to sign_in page after successful sign in as account_user", %{ session: session } do account = Fixtures.Accounts.create_account() @@ -138,7 +138,7 @@ defmodule Web.Acceptance.Auth.UserPassTest do |> assert_error_flash("Please use a client application to access Firezone.") end - feature "redirects to client deep link after successful log in as account_admin_user", %{ + feature "redirects to client deep link after successful sign in as account_admin_user", %{ session: session } do nonce = Ecto.UUID.generate() @@ -193,7 +193,7 @@ defmodule Web.Acceptance.Auth.UserPassTest do assert {:ok, _subject} = Domain.Auth.authenticate(token, context) end - feature "allows to log in using email link to the client even with active browser session", %{ + feature "allows to sign in using email link to the client even with active browser session", %{ session: session } do nonce = Ecto.UUID.generate() diff --git a/elixir/apps/web/test/web/auth_test.exs b/elixir/apps/web/test/web/auth_test.exs index 0a0029b59..41382a1d5 100644 --- a/elixir/apps/web/test/web/auth_test.exs +++ b/elixir/apps/web/test/web/auth_test.exs @@ -812,7 +812,7 @@ defmodule Web.AuthTest do assert redirected_to(conn) =~ ~p"/#{account.slug}?redirect_to=" assert Phoenix.Flash.get(conn.assigns.flash, :error) == - "You must log in to access this page." + "You must sign in to access this page." end test "stores the path to redirect to on GET", %{conn: conn, account: account} do diff --git a/elixir/apps/web/test/web/live/actors/edit_test.exs b/elixir/apps/web/test/web/live/actors/edit_test.exs index e6da4a706..472fdc6e3 100644 --- a/elixir/apps/web/test/web/live/actors/edit_test.exs +++ b/elixir/apps/web/test/web/live/actors/edit_test.exs @@ -26,7 +26,7 @@ defmodule Web.Live.Actors.EditTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end @@ -242,7 +242,7 @@ defmodule Web.Live.Actors.EditTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/actors/index_test.exs b/elixir/apps/web/test/web/live/actors/index_test.exs index 2d365a27a..06747b235 100644 --- a/elixir/apps/web/test/web/live/actors/index_test.exs +++ b/elixir/apps/web/test/web/live/actors/index_test.exs @@ -19,7 +19,7 @@ defmodule Web.Live.Actors.IndexTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/actors/new_test.exs b/elixir/apps/web/test/web/live/actors/new_test.exs index c8a19e1a1..9cf0efce4 100644 --- a/elixir/apps/web/test/web/live/actors/new_test.exs +++ b/elixir/apps/web/test/web/live/actors/new_test.exs @@ -19,7 +19,7 @@ defmodule Web.Live.Actors.NewTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/actors/service_accounts/new_identity_test.exs b/elixir/apps/web/test/web/live/actors/service_accounts/new_identity_test.exs index b502910a7..2cabc6f16 100644 --- a/elixir/apps/web/test/web/live/actors/service_accounts/new_identity_test.exs +++ b/elixir/apps/web/test/web/live/actors/service_accounts/new_identity_test.exs @@ -34,7 +34,7 @@ defmodule Web.Live.Actors.ServiceAccounts.NewIdentityTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/actors/service_accounts/new_test.exs b/elixir/apps/web/test/web/live/actors/service_accounts/new_test.exs index 527e4f028..21f270f0b 100644 --- a/elixir/apps/web/test/web/live/actors/service_accounts/new_test.exs +++ b/elixir/apps/web/test/web/live/actors/service_accounts/new_test.exs @@ -27,7 +27,7 @@ defmodule Web.Live.Actors.ServiceAccount.NewTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/actors/show_test.exs b/elixir/apps/web/test/web/live/actors/show_test.exs index 54304ca32..9e223a963 100644 --- a/elixir/apps/web/test/web/live/actors/show_test.exs +++ b/elixir/apps/web/test/web/live/actors/show_test.exs @@ -12,7 +12,7 @@ defmodule Web.Live.Actors.ShowTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/actors/users/new_identity_test.exs b/elixir/apps/web/test/web/live/actors/users/new_identity_test.exs index ffd42c56f..c4c9eb289 100644 --- a/elixir/apps/web/test/web/live/actors/users/new_identity_test.exs +++ b/elixir/apps/web/test/web/live/actors/users/new_identity_test.exs @@ -35,7 +35,7 @@ defmodule Web.Live.Actors.User.NewIdentityTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/actors/users/new_test.exs b/elixir/apps/web/test/web/live/actors/users/new_test.exs index 0f186da0d..77b0ea4ee 100644 --- a/elixir/apps/web/test/web/live/actors/users/new_test.exs +++ b/elixir/apps/web/test/web/live/actors/users/new_test.exs @@ -27,7 +27,7 @@ defmodule Web.Live.Actors.User.NewTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/clients/edit_test.exs b/elixir/apps/web/test/web/live/clients/edit_test.exs index 72ff6ba15..28ce53037 100644 --- a/elixir/apps/web/test/web/live/clients/edit_test.exs +++ b/elixir/apps/web/test/web/live/clients/edit_test.exs @@ -28,7 +28,7 @@ defmodule Web.Live.Clients.EditTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/clients/index_test.exs b/elixir/apps/web/test/web/live/clients/index_test.exs index 940194a0a..02564ccd3 100644 --- a/elixir/apps/web/test/web/live/clients/index_test.exs +++ b/elixir/apps/web/test/web/live/clients/index_test.exs @@ -19,7 +19,7 @@ defmodule Web.Live.Clients.IndexTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/clients/show_test.exs b/elixir/apps/web/test/web/live/clients/show_test.exs index 1794d46d0..c65f763b9 100644 --- a/elixir/apps/web/test/web/live/clients/show_test.exs +++ b/elixir/apps/web/test/web/live/clients/show_test.exs @@ -30,7 +30,7 @@ defmodule Web.Live.Clients.ShowTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/gateways/show_test.exs b/elixir/apps/web/test/web/live/gateways/show_test.exs index f13e45db1..75268c057 100644 --- a/elixir/apps/web/test/web/live/gateways/show_test.exs +++ b/elixir/apps/web/test/web/live/gateways/show_test.exs @@ -31,7 +31,7 @@ defmodule Web.Live.Gateways.ShowTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/groups/edit_actors_test.exs b/elixir/apps/web/test/web/live/groups/edit_actors_test.exs index 4989782ae..de05582d4 100644 --- a/elixir/apps/web/test/web/live/groups/edit_actors_test.exs +++ b/elixir/apps/web/test/web/live/groups/edit_actors_test.exs @@ -27,7 +27,7 @@ defmodule Web.Live.Groups.EditActorsTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/groups/edit_test.exs b/elixir/apps/web/test/web/live/groups/edit_test.exs index b00f6141c..bdef166ae 100644 --- a/elixir/apps/web/test/web/live/groups/edit_test.exs +++ b/elixir/apps/web/test/web/live/groups/edit_test.exs @@ -28,7 +28,7 @@ defmodule Web.Live.Groups.EditTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/groups/index_test.exs b/elixir/apps/web/test/web/live/groups/index_test.exs index 613af90b3..bbe8d6e0d 100644 --- a/elixir/apps/web/test/web/live/groups/index_test.exs +++ b/elixir/apps/web/test/web/live/groups/index_test.exs @@ -19,7 +19,7 @@ defmodule Web.Live.Groups.IndexTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/groups/new_test.exs b/elixir/apps/web/test/web/live/groups/new_test.exs index e3193f89c..4e0d70654 100644 --- a/elixir/apps/web/test/web/live/groups/new_test.exs +++ b/elixir/apps/web/test/web/live/groups/new_test.exs @@ -24,7 +24,7 @@ defmodule Web.Live.Groups.NewTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/groups/show_test.exs b/elixir/apps/web/test/web/live/groups/show_test.exs index 17091f1d1..11a7664b9 100644 --- a/elixir/apps/web/test/web/live/groups/show_test.exs +++ b/elixir/apps/web/test/web/live/groups/show_test.exs @@ -28,7 +28,7 @@ defmodule Web.Live.Groups.ShowTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/policies/edit_test.exs b/elixir/apps/web/test/web/live/policies/edit_test.exs index 5d051f986..3393d1f04 100644 --- a/elixir/apps/web/test/web/live/policies/edit_test.exs +++ b/elixir/apps/web/test/web/live/policies/edit_test.exs @@ -38,7 +38,7 @@ defmodule Web.Live.Policies.EditTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/policies/index_test.exs b/elixir/apps/web/test/web/live/policies/index_test.exs index 81f69841c..ec66ffdc8 100644 --- a/elixir/apps/web/test/web/live/policies/index_test.exs +++ b/elixir/apps/web/test/web/live/policies/index_test.exs @@ -19,7 +19,7 @@ defmodule Web.Live.Policies.IndexTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/policies/new_test.exs b/elixir/apps/web/test/web/live/policies/new_test.exs index 035d2f596..6056e6c15 100644 --- a/elixir/apps/web/test/web/live/policies/new_test.exs +++ b/elixir/apps/web/test/web/live/policies/new_test.exs @@ -26,7 +26,7 @@ defmodule Web.Live.Policies.NewTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/policies/show_test.exs b/elixir/apps/web/test/web/live/policies/show_test.exs index bba607da7..a8e334211 100644 --- a/elixir/apps/web/test/web/live/policies/show_test.exs +++ b/elixir/apps/web/test/web/live/policies/show_test.exs @@ -41,7 +41,7 @@ defmodule Web.Live.Policies.ShowTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/relay_groups/edit_test.exs b/elixir/apps/web/test/web/live/relay_groups/edit_test.exs index 624f7cafd..8bd0e81f3 100644 --- a/elixir/apps/web/test/web/live/relay_groups/edit_test.exs +++ b/elixir/apps/web/test/web/live/relay_groups/edit_test.exs @@ -28,7 +28,7 @@ defmodule Web.Live.RelayGroups.EditTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/relay_groups/index_test.exs b/elixir/apps/web/test/web/live/relay_groups/index_test.exs index ad878d203..ff566fff9 100644 --- a/elixir/apps/web/test/web/live/relay_groups/index_test.exs +++ b/elixir/apps/web/test/web/live/relay_groups/index_test.exs @@ -19,7 +19,7 @@ defmodule Web.Live.RelayGroups.IndexTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/relay_groups/new_test.exs b/elixir/apps/web/test/web/live/relay_groups/new_test.exs index d74e847f8..6d6b1b96b 100644 --- a/elixir/apps/web/test/web/live/relay_groups/new_test.exs +++ b/elixir/apps/web/test/web/live/relay_groups/new_test.exs @@ -24,7 +24,7 @@ defmodule Web.Live.RelayGroups.NewTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/relay_groups/show_test.exs b/elixir/apps/web/test/web/live/relay_groups/show_test.exs index a1f512d89..b9c2d73f6 100644 --- a/elixir/apps/web/test/web/live/relay_groups/show_test.exs +++ b/elixir/apps/web/test/web/live/relay_groups/show_test.exs @@ -33,7 +33,7 @@ defmodule Web.Live.RelayGroups.ShowTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/relays/show_test.exs b/elixir/apps/web/test/web/live/relays/show_test.exs index b691698c0..32190ef23 100644 --- a/elixir/apps/web/test/web/live/relays/show_test.exs +++ b/elixir/apps/web/test/web/live/relays/show_test.exs @@ -31,7 +31,7 @@ defmodule Web.Live.Relays.ShowTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/resources/edit_test.exs b/elixir/apps/web/test/web/live/resources/edit_test.exs index 43dfbd94e..358c255b4 100644 --- a/elixir/apps/web/test/web/live/resources/edit_test.exs +++ b/elixir/apps/web/test/web/live/resources/edit_test.exs @@ -37,7 +37,7 @@ defmodule Web.Live.Resources.EditTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/resources/index_test.exs b/elixir/apps/web/test/web/live/resources/index_test.exs index 3b488865d..47179033d 100644 --- a/elixir/apps/web/test/web/live/resources/index_test.exs +++ b/elixir/apps/web/test/web/live/resources/index_test.exs @@ -19,7 +19,7 @@ defmodule Web.Live.Resources.IndexTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/resources/new_test.exs b/elixir/apps/web/test/web/live/resources/new_test.exs index 8dc92a1d4..94022fc8d 100644 --- a/elixir/apps/web/test/web/live/resources/new_test.exs +++ b/elixir/apps/web/test/web/live/resources/new_test.exs @@ -28,7 +28,7 @@ defmodule Web.Live.Resources.NewTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/resources/show_test.exs b/elixir/apps/web/test/web/live/resources/show_test.exs index c795e1f63..50ffd4f87 100644 --- a/elixir/apps/web/test/web/live/resources/show_test.exs +++ b/elixir/apps/web/test/web/live/resources/show_test.exs @@ -41,7 +41,7 @@ defmodule Web.Live.Resources.ShowTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/settings/account/index_test.exs b/elixir/apps/web/test/web/live/settings/account/index_test.exs index 2b6373c52..547c60ce7 100644 --- a/elixir/apps/web/test/web/live/settings/account/index_test.exs +++ b/elixir/apps/web/test/web/live/settings/account/index_test.exs @@ -21,7 +21,7 @@ defmodule Web.Live.Settings.Account.IndexTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/settings/dns/index_test.exs b/elixir/apps/web/test/web/live/settings/dns/index_test.exs index f025be026..b880456bd 100644 --- a/elixir/apps/web/test/web/live/settings/dns/index_test.exs +++ b/elixir/apps/web/test/web/live/settings/dns/index_test.exs @@ -21,7 +21,7 @@ defmodule Web.Live.Settings.DNS.IndexTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/connect_test.exs b/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/connect_test.exs index d5c95cd79..ad7435f76 100644 --- a/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/connect_test.exs +++ b/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/connect_test.exs @@ -33,7 +33,7 @@ defmodule Web.Live.Settings.IdentityProviders.GoogleWorkspace.Connect do ) assert redirected_to(conn) =~ ~p"/#{account_id}" - assert flash(conn, :error) == "You must log in to access this page." + assert flash(conn, :error) == "You must sign in to access this page." end test "redirects with an error when provider does not exist", %{identity: identity, conn: conn} do diff --git a/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/edit_test.exs b/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/edit_test.exs index 04e7ee0e9..3eee8bb70 100644 --- a/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/edit_test.exs +++ b/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/edit_test.exs @@ -33,7 +33,7 @@ defmodule Web.Live.Settings.IdentityProviders.GoogleWorkspace.EditTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/new_test.exs b/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/new_test.exs index d2796b9c8..d2b2d2d02 100644 --- a/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/new_test.exs +++ b/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/new_test.exs @@ -26,7 +26,7 @@ defmodule Web.Live.Settings.IdentityProviders.GoogleWorkspace.NewTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/show_test.exs b/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/show_test.exs index e5532e46b..c76b45553 100644 --- a/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/show_test.exs +++ b/elixir/apps/web/test/web/live/settings/identity_providers/google_workspace/show_test.exs @@ -32,7 +32,7 @@ defmodule Web.Live.Settings.IdentityProviders.GoogleWorkspace.ShowTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/settings/identity_providers/index_test.exs b/elixir/apps/web/test/web/live/settings/identity_providers/index_test.exs index 8991321ba..bb14752c9 100644 --- a/elixir/apps/web/test/web/live/settings/identity_providers/index_test.exs +++ b/elixir/apps/web/test/web/live/settings/identity_providers/index_test.exs @@ -30,7 +30,7 @@ defmodule Web.Live.Settings.IdentityProviders.IndexTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/settings/identity_providers/new_test.exs b/elixir/apps/web/test/web/live/settings/identity_providers/new_test.exs index b832cce67..618ebb0b9 100644 --- a/elixir/apps/web/test/web/live/settings/identity_providers/new_test.exs +++ b/elixir/apps/web/test/web/live/settings/identity_providers/new_test.exs @@ -28,7 +28,7 @@ defmodule Web.Live.Settings.IdentityProviders.NewTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/connect_test.exs b/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/connect_test.exs index 5d228fbe8..7c9fbd738 100644 --- a/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/connect_test.exs +++ b/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/connect_test.exs @@ -33,7 +33,7 @@ defmodule Web.Live.Settings.IdentityProviders.OpenIDConnect.Connect do ) assert redirected_to(conn) =~ "/#{account_id}?redirect_to=" - assert flash(conn, :error) == "You must log in to access this page." + assert flash(conn, :error) == "You must sign in to access this page." end test "redirects with an error when provider does not exist", %{identity: identity, conn: conn} do diff --git a/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/edit_test.exs b/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/edit_test.exs index 82d8ac232..61aa02151 100644 --- a/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/edit_test.exs +++ b/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/edit_test.exs @@ -32,7 +32,7 @@ defmodule Web.Live.Settings.IdentityProviders.OpenIDConnect.EditTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/new_test.exs b/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/new_test.exs index b3572d7e8..e7fb4a7fb 100644 --- a/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/new_test.exs +++ b/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/new_test.exs @@ -26,7 +26,7 @@ defmodule Web.Live.Settings.IdentityProviders.OpenIDConnect.NewTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/show_test.exs b/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/show_test.exs index bc082dbc9..50b2aa20d 100644 --- a/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/show_test.exs +++ b/elixir/apps/web/test/web/live/settings/identity_providers/openid_connect/show_test.exs @@ -31,7 +31,7 @@ defmodule Web.Live.Settings.IdentityProviders.OpenIDConnect.ShowTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/settings/identity_providers/system/show_test.exs b/elixir/apps/web/test/web/live/settings/identity_providers/system/show_test.exs index e65a9cd4b..0b260710a 100644 --- a/elixir/apps/web/test/web/live/settings/identity_providers/system/show_test.exs +++ b/elixir/apps/web/test/web/live/settings/identity_providers/system/show_test.exs @@ -29,7 +29,7 @@ defmodule Web.Live.Settings.IdentityProviders.System.ShowTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/sites/edit_test.exs b/elixir/apps/web/test/web/live/sites/edit_test.exs index 99d32cb40..dfb4baeed 100644 --- a/elixir/apps/web/test/web/live/sites/edit_test.exs +++ b/elixir/apps/web/test/web/live/sites/edit_test.exs @@ -28,7 +28,7 @@ defmodule Web.Live.Sites.EditTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/sites/index_test.exs b/elixir/apps/web/test/web/live/sites/index_test.exs index e6b45acff..fb9e213c2 100644 --- a/elixir/apps/web/test/web/live/sites/index_test.exs +++ b/elixir/apps/web/test/web/live/sites/index_test.exs @@ -19,7 +19,7 @@ defmodule Web.Live.Sites.IndexTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/sites/new_test.exs b/elixir/apps/web/test/web/live/sites/new_test.exs index 815fcb364..a5e6b7efe 100644 --- a/elixir/apps/web/test/web/live/sites/new_test.exs +++ b/elixir/apps/web/test/web/live/sites/new_test.exs @@ -24,7 +24,7 @@ defmodule Web.Live.Sites.NewTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end diff --git a/elixir/apps/web/test/web/live/sites/show_test.exs b/elixir/apps/web/test/web/live/sites/show_test.exs index 6af7cd0d4..9dd6659fa 100644 --- a/elixir/apps/web/test/web/live/sites/show_test.exs +++ b/elixir/apps/web/test/web/live/sites/show_test.exs @@ -33,7 +33,7 @@ defmodule Web.Live.Sites.ShowTest do {:redirect, %{ to: ~p"/#{account}?#{%{redirect_to: path}}", - flash: %{"error" => "You must log in to access this page."} + flash: %{"error" => "You must sign in to access this page."} }}} end