WIP: validate required fields
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Moritz 2025-06-02 22:41:04 +02:00
parent 967a89b18d
commit 156cdb24d0
Signed by: moritz
GPG key ID: 1020A035E5DD0824
5 changed files with 62 additions and 4 deletions

View file

@ -13,6 +13,9 @@ defmodule Mv.Membership.Email do
max_length: @max_length
]
@impl true
def cast_input("", _), do: {:ok, nil}
@impl true
def cast_input(value, _) when is_binary(value) do
value = String.trim(value)