joepstender

Results 18 comments of joepstender

"I'm thinking of introducing mix tasks to produce custom controllers which will produce something akin to mix phx.gen.auth where you will be able to understand how it's all connected." I...

Thanks for the quick response, that indeed would be a great improvement!

Continuing with this, I get a FunctionClauseError at POST /testorganization/invitations: "no function clause matching in Keyword.has_key?/2" for the line `url = Routes.pow_invitation_invitation_url(conn, user)` in MyAppWeb.InvitationController. Should I change the route...

Right that fixed it. And I think we need to pass in conn in the :error case at create: `{:error, changeset, conn} ->`?

It would be great to have this, not having to create custom controllers for every custom extension route would be a big win!

Could you rephrase the first question? Do you mean: "How should the session id be handled for requests after handshake?" ?

I copied the example SessionPlug from the guide. ```elixir defmodule TenantzWeb.PowTriplexSessionPlug do def init(config), do: config def call(conn, config) do tenant = conn.assigns[:current_tenant] || conn.assigns[:raw_current_tenant] prefix = Triplex.to_prefix(tenant) config =...

Ah found the error, I made a typo in the :app_name in the endpoint config... Thanks! 👍

Sorry to have to reopen. How would I get Pow.Plug.create_user to use the current_tenant?

Somehow it doesn't. ```elixir Postgrex.Error at POST /firstcustomer/signup ERROR 42P01 (undefined_table) relation "users" does not exist ``` As you can see I use the tenant_id in the url, I created...