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
|
||||
|> cast(attrs, [:username, :email, :password])
|
||||
|> validate_username()
|
||||
|> validate_email()
|
||||
|> validate_password(opts)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue