diff --git a/lib/plausible_web/controllers/auth_controller.ex b/lib/plausible_web/controllers/auth_controller.ex index a54b34851..d30bff50d 100644 --- a/lib/plausible_web/controllers/auth_controller.ex +++ b/lib/plausible_web/controllers/auth_controller.ex @@ -31,12 +31,6 @@ defmodule PlausibleWeb.AuthController do ] ) - plug(:assign_is_selfhost) - - defp assign_is_selfhost(conn, _opts) do - assign(conn, :is_selfhost, Plausible.Release.selfhost?()) - end - def register(conn, %{"user" => %{"email" => email, "password" => password}}) do with {:ok, user} <- login_user(conn, email, password) do conn = set_user_session(conn, user) diff --git a/lib/plausible_web/live/register_form.ex b/lib/plausible_web/live/register_form.ex index 143ca30de..94c725b80 100644 --- a/lib/plausible_web/live/register_form.ex +++ b/lib/plausible_web/live/register_form.ex @@ -5,6 +5,7 @@ defmodule PlausibleWeb.Live.RegisterForm do use Phoenix.LiveView use Phoenix.HTML + use Plausible import PlausibleWeb.Live.Components.Form @@ -37,7 +38,6 @@ defmodule PlausibleWeb.Live.RegisterForm do form: to_form(changeset), captcha_error: nil, password_strength: Auth.User.password_strength(changeset), - is_selfhost: Plausible.Release.selfhost?(), trigger_submit: false )} end @@ -68,7 +68,7 @@ defmodule PlausibleWeb.Live.RegisterForm do ~H"""