diff --git a/config/config.exs b/config/config.exs index c375ef2..9f7ed6e 100644 --- a/config/config.exs +++ b/config/config.exs @@ -9,7 +9,8 @@ import Config config :poex, ecto_repos: [Poex.Repo], - generators: [timestamp_type: :utc_datetime] + generators: [timestamp_type: :utc_datetime], + open_registration: false # Configures the endpoint config :poex, PoexWeb.Endpoint, diff --git a/lib/poex_web/components/layouts/root.html.heex b/lib/poex_web/components/layouts/root.html.heex index 0ded62e..c57542a 100644 --- a/lib/poex_web/components/layouts/root.html.heex +++ b/lib/poex_web/components/layouts/root.html.heex @@ -13,47 +13,50 @@ - + <%= if Application.get_env(:poex, :open_registration, false) do %> + + <% end %> <%= @inner_content %>