We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0fa893 commit cce9132Copy full SHA for cce9132
priv/templates/phx.gen.auth/schema.ex
@@ -46,7 +46,7 @@ defmodule <%= inspect schema.module %> do
46
defp validate_email(changeset, opts) do
47
changeset
48
|> validate_required([:email])
49
- |> validate_format(:email, ~r/^[^\s]+@[^\s]+$/, message: "must have the @ sign and no spaces")
+ |> validate_format(:email, ~r/^[^@,;\s]+@[^@,;\s]+$/, message: "must have the @ sign and no spaces")
50
|> validate_length(:email, max: 160)
51
|> maybe_validate_unique_email(opts)
52
end
0 commit comments