add email validation to user.ex

This commit is contained in:
Lili (Tlapka) 2021-10-11 15:15:40 +02:00
parent 74956f2ba4
commit d6a59171e7
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ defmodule PokemonCouture.Accounts.User do
user user
|> cast(attrs, [:username, :email, :password]) |> cast(attrs, [:username, :email, :password])
|> validate_username() |> validate_username()
|> validate_email()
|> validate_password(opts) |> validate_password(opts)
end end