On Page 58, it says:
Add this to your live_session definition in the router:
auth/pento/lib/pento_web/router.ex
live_session :default, on_mount: PentoWeb.UserAuthLive do
live "/guess", WrongLive
end
But the last mention of a live_session
definition was only a “pseudo-code” example on page 55. At this point of the code we haven’t added a live_session
definition to the router.ex
.
Solution would be to simply say:
Add this to the bottom of the
scope "/", PentoWeb
definition: