Request: GET /passwords/new
** (exit) an exception was raised:
** (ArgumentError) argument error
:erlang.apply(Lol.Accounts.User, {Lol.Accounts.User, :changeset}, [])
(coherence) lib/coherence/controllers/controller_helpers.ex:284: Coherence.ControllerHelpers.changeset/4
(lol) lib/lol_web/controllers/coherence/password_controller.ex:35: LolWeb.Coherence.PasswordController.new/2
I have set my config with changeset: {Lol.Accounts.User, :changeset} and have the changeset function on my Lol.Accounts.User model:
def changeset(model, params, :password) do
model
|> cast(params, ~w(password password_confirmation reset_password_token reset_password_sent_at))
|> validate_coherence_password_reset(params)
end
I have set my config with
changeset: {Lol.Accounts.User, :changeset}
and have the changeset function on myLol.Accounts.User
model: