add email validation to user.ex
This commit is contained in:
parent
74956f2ba4
commit
d6a59171e7
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue