Add configurable prevention of user registration

Should be done appropriately soon.
This commit is contained in:
Thelonius Kort
2023-01-31 18:16:28 +01:00
parent 54b609185d
commit c5853fc2aa
4 changed files with 29 additions and 4 deletions

View File

@ -7,11 +7,13 @@ defmodule OutlookWeb.UserLoginLive do
<.header class="text-center">
Sign in to account
<:subtitle>
<%= unless System.get_env("DISABLE_REGISTRATION") do %>
Don't have an account?
<.link navigate={~p"/users/register"} class="font-semibold text-brand hover:underline">
Sign up
</.link>
for an account now.
<% end %>
</:subtitle>
</.header>