more white to allow renaming

This commit is contained in:
Your Name
2025-09-16 09:32:40 +00:00
parent 6eab34c61a
commit 12ce7d1d5d
4 changed files with 143 additions and 146 deletions
-19
View File
@@ -1,19 +0,0 @@
defmodule FunCore.BasicSignupAllowlist do
def normalize(email) do
email |> String.trim() |> String.downcase()
end
def addresses_as_list(addresses_str) do
addresses_str
|> String.split(",")
|> Enum.map(&normalize/1)
end
def mail_allowlisted_fun(signups_allowed, email_received) do
case signups_allowed do
nil -> false
"*" -> true
list_str -> normalize(email_received) in addresses_as_list(list_str)
end
end
end