function ProjectWeb.Coherence.RegistrationView.render/2 is undefined (module ProejctWeb.Coherence.RegistrationView is not available)
StephanMeijer opened this issue · 1 comments
StephanMeijer commented
function Gdss2Web.Coherence.RegistrationView.render/2 is undefined (module Gdss2Web.Coherence.RegistrationView is not available)
With config:
config :coherence,
user_schema: Gdss2.Coherence.User,
repo: Gdss2.Repo,
module: Gdss2,
web_module: Gdss2Web,
router: Gdss2Web.Router,
messages_backend: Gdss2Web.Coherence.Messages,
logged_out_url: "/",
opts: [:authenticatable, :registerable]
and navigating to /registration/new
Router-file:
defmodule Gdss2Web.Router do
use Gdss2Web, :router
use Coherence.Router # Add this
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug Coherence.Authentication.Session # Add this
end
pipeline :protected do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug Coherence.Authentication.Session, protected: true # Add this
end
# Add this block
scope "/" do
pipe_through :browser
coherence_routes()
end
# Add this block
scope "/" do
pipe_through :protected
coherence_routes :all
end
scope "/", Gdss2Web do
pipe_through :browser
get "/", PageController, :index
# Add public routes below
end
scope "/", Gdss2Web do
pipe_through :protected
# Add protected routes below
end
end
StephanMeijer commented
Fixed with mix coh.install --full --invitable --registerable --rememberable --confirmable --user-active-field