frontender v.2
This commit is contained in:
2
lib/derivantes/accounts/user.ex
Normal file → Executable file
2
lib/derivantes/accounts/user.ex
Normal file → Executable 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
|
||||
|
Reference in New Issue
Block a user