SessionAuthenticationPlug module name

This commit is contained in:
Alexander Strizhakov 2020-06-24 09:27:29 +03:00
parent 8249b75761
commit 4b4c0eef36
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
3 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/> # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only # SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Plugs.SessionAuthenticationPlug do defmodule Pleroma.Web.Plugs.SessionAuthenticationPlug do
import Plug.Conn import Plug.Conn
def init(options) do def init(options) do

View file

@ -28,7 +28,7 @@ defmodule Pleroma.Web.Router do
plug(Pleroma.Plugs.OAuthPlug) plug(Pleroma.Plugs.OAuthPlug)
plug(Pleroma.Plugs.BasicAuthDecoderPlug) plug(Pleroma.Plugs.BasicAuthDecoderPlug)
plug(Pleroma.Web.Plugs.UserFetcherPlug) plug(Pleroma.Web.Plugs.UserFetcherPlug)
plug(Pleroma.Plugs.SessionAuthenticationPlug) plug(Pleroma.Web.Plugs.SessionAuthenticationPlug)
plug(Pleroma.Plugs.LegacyAuthenticationPlug) plug(Pleroma.Plugs.LegacyAuthenticationPlug)
plug(Pleroma.Plugs.AuthenticationPlug) plug(Pleroma.Plugs.AuthenticationPlug)
end end

View file

@ -5,8 +5,8 @@
defmodule Pleroma.Web.Plugs.SessionAuthenticationPlugTest do defmodule Pleroma.Web.Plugs.SessionAuthenticationPlugTest do
use Pleroma.Web.ConnCase, async: true use Pleroma.Web.ConnCase, async: true
alias Pleroma.Plugs.SessionAuthenticationPlug
alias Pleroma.User alias Pleroma.User
alias Pleroma.Web.Plugs.SessionAuthenticationPlug
setup %{conn: conn} do setup %{conn: conn} do
session_opts = [ session_opts = [