Integrate whitelist in imperative shell

This commit is contained in:
2025-09-14 20:15:14 +01:00
parent 1c23e93d43
commit 5a7f651547
2 changed files with 21 additions and 2 deletions
+5 -2
View File
@@ -1,4 +1,6 @@
defmodule BasicSignupWhitelist do
import FunCore.BasicSignupWhitelist
@moduledoc """
Checks if an email address is allowed based on the SIGNUP_ALLOWED_EMAILS env variable.
"""
@@ -20,7 +22,8 @@ defmodule BasicSignupWhitelist do
false
"""
def mail_whitelisted(_email) do
false
def mail_whitelisted(email) do
env_value = System.get_env("SIGNUP_ALLOWED_EMAILS")
mail_whitelisted_fun(env_value, email)
end
end