I noticed that validate_email
takes changeset
as a param, and yet this is never passed in. I guess this must be some auto-pass-in feature?
I tried the same thing with confirm_emails_match
, and it now compiles, but MANY new warnings have cropped up caused by this. Baby steps.
defp confirm_emails_match(changeset, _attrs) do
changeset
IO.puts("TEST")
# if attrs.email1 !== email2 do
# "todo"
# end
end
EDIT: I also see there is a validation_cofirmation
which does this same thing. Still don’t understand why where the undefined error was coming from though.
Additional Info: I have another question similar to this. This was caused by passing in the incorrect params while inside of the pipes. I guess that’s similar to what is happening here?