fix: Force all endpoints to use same pow key

This commit is contained in:
Robert Prehn 2021-05-17 22:26:05 -05:00
parent 1f19aa6383
commit cd9b84488e
4 changed files with 4 additions and 4 deletions

View file

@ -57,6 +57,6 @@ defmodule Legendary.Admin.Endpoint do
plug Plug.MethodOverride plug Plug.MethodOverride
plug Plug.Head plug Plug.Head
plug Plug.Session, @session_options plug Plug.Session, @session_options
plug Pow.Plug.Session plug Pow.Plug.Session, otp_app: :core
plug Legendary.Admin.Router plug Legendary.Admin.Router
end end

View file

@ -63,7 +63,7 @@ defmodule AppWeb.Endpoint do
plug Plug.MethodOverride plug Plug.MethodOverride
plug Plug.Head plug Plug.Head
plug Plug.Session, @session_options plug Plug.Session, @session_options
plug Pow.Plug.Session plug Pow.Plug.Session, otp_app: :core
plug PowPersistentSession.Plug.Cookie plug PowPersistentSession.Plug.Cookie
plug AppWeb.Router plug AppWeb.Router
end end

View file

@ -57,6 +57,6 @@ defmodule Legendary.Content.Endpoint do
plug Plug.MethodOverride plug Plug.MethodOverride
plug Plug.Head plug Plug.Head
plug Plug.Session, @session_options plug Plug.Session, @session_options
plug Pow.Plug.Session plug Pow.Plug.Session, otp_app: :core
plug Legendary.Content.Router plug Legendary.Content.Router
end end

View file

@ -63,7 +63,7 @@ defmodule Legendary.CoreWeb.Endpoint do
plug Plug.MethodOverride plug Plug.MethodOverride
plug Plug.Head plug Plug.Head
plug Plug.Session, @session_options plug Plug.Session, @session_options
plug Pow.Plug.Session plug Pow.Plug.Session, otp_app: :core
plug PowPersistentSession.Plug.Cookie plug PowPersistentSession.Plug.Cookie
plug Legendary.CoreWeb.Router plug Legendary.CoreWeb.Router
end end