You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to set up Pow with multiple user schemas. I followed the instructions here but I am unable to get it to work. I've tried to find a solution in the documentation but I didn't find a solution.
Using Elixir 1.10.3, Phoenix 1.5.1 and Pow 1.0.20.
The error I get in the browser is the following,
UndefinedFunctionError at GET /organizer/session/new
function HelloWeb.Router.Helpers.pow_session_path/3 is undefined or private
When compiling organizer_routes.ex, I get the warning warning: this clause cannot match because a previous clause at line 2 always matches. I am suspecting this is related to why the routes aren't working
Below are all the configuration changes I have made
# lib/hello_web/router.exdefmoduleHelloWeb.RouterdouseHelloWeb,:routerusePow.Phoenix.Router# ...pipeline:pow_organizerdoplug:set_pow_config,repo: Hello.Repo,user: Hello.Organizers.Organizer,current_user_assigns_key: :current_organizer,session_key: "organizer_auth",routes_backend: HelloWeb.Pow.OrganizerRoutes,plug: Pow.Plug.Sessionenddefpset_pow_config(conn,config),do: Pow.Plug.put_config(conn,config)# I've temporarily disabled these routes since it seems Pow otherwise uses these for the organizer user schema as well# scope "/" do# pipe_through :browser# pow_routes()# endscope"/",HelloWebdopipe_through:browserget"/",PageController,:indexendscope"/organizer",as: :organizerdopipe_through[:browser,:pow_organizer]pow_routes()end# ...end
I am trying to set up Pow with multiple user schemas. I followed the instructions here but I am unable to get it to work. I've tried to find a solution in the documentation but I didn't find a solution.
Using Elixir 1.10.3, Phoenix 1.5.1 and Pow 1.0.20.
The error I get in the browser is the following,
When compiling
organizer_routes.ex
, I get the warningwarning: this clause cannot match because a previous clause at line 2 always matches
. I am suspecting this is related to why the routes aren't workingBelow are all the configuration changes I have made
The text was updated successfully, but these errors were encountered: