frontender v.2

This commit is contained in:
julian
2024-06-28 11:19:27 -03:00
parent e61985d50e
commit 10b1f8c855
11 changed files with 39 additions and 17 deletions

2
lib/derivantes/accounts/user.ex Normal file → Executable file
View File

@ -51,7 +51,7 @@ defmodule Derivantes.Accounts.User do
defp validate_email(changeset, opts) do
changeset
|> validate_required([:email])
|> validate_format(:email, ~r/^[^\s]+@[^\s]+$/, message: "must have the @ sign and no spaces")
|> validate_format(:email, ~r/^[^\s]+@[^\s]+$/, message: "Ingrese un email válido")
|> validate_length(:email, max: 160)
|> maybe_validate_unique_email(opts)
end