smpallen99 / coherence

Coherence is a full featured, configurable authentication system for Phoenix
MIT License
1.27k stars 225 forks source link

function nil.signed_in_successfully/0 is undefined or private #318

Closed cdesch closed 6 years ago

cdesch commented 6 years ago

receive this error on coherence 0.4.0 after login in the endpoint.ex:

  function nil.signed_in_successfully/0 is undefined or private

[error] #PID<0.1074.0> running MyRewardsWeb.Endpoint terminated
Server: localhost:4000 (http)
Request: POST /sessions
** (exit) an exception was raised:
    ** (UndefinedFunctionError) function nil.signed_in_successfully/0 is undefined or private
        nil.signed_in_successfully()
        (coherence) lib/coherence/controllers/session_controller.ex:123: Coherence.SessionController.do_lockable/4
        (coherence) lib/coherence/controllers/session_controller.ex:1: Coherence.SessionController.action/2
        (coherence) lib/coherence/controllers/session_controller.ex:1: Coherence.SessionController.phoenix_controller_pipeline/2
cdesch commented 6 years ago

This was an upgrade from 0.3.0 to 0.4.0.

After the upgrade, I needed to add: messages_backend: MyRewardsWeb.Coherence.Messages, to the config.ex