This commit is contained in:
parent
967a89b18d
commit
156cdb24d0
5 changed files with 62 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue