OAuthPlug module name

This commit is contained in:
Alexander Strizhakov 2020-06-24 09:59:21 +03:00
parent a6d8cef33e
commit 96d320bdfe
No known key found for this signature in database
GPG Key ID: 022896A53AEF1381
3 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Plugs.OAuthPlug do
defmodule Pleroma.Web.Plugs.OAuthPlug do
import Plug.Conn
import Ecto.Query

View File

@ -12,7 +12,7 @@ defmodule Pleroma.Web.Router do
pipeline :oauth do
plug(:fetch_session)
plug(Pleroma.Plugs.OAuthPlug)
plug(Pleroma.Web.Plugs.OAuthPlug)
plug(Pleroma.Web.Plugs.UserEnabledPlug)
end
@ -25,7 +25,7 @@ defmodule Pleroma.Web.Router do
end
pipeline :authenticate do
plug(Pleroma.Plugs.OAuthPlug)
plug(Pleroma.Web.Plugs.OAuthPlug)
plug(Pleroma.Plugs.BasicAuthDecoderPlug)
plug(Pleroma.Web.Plugs.UserFetcherPlug)
plug(Pleroma.Web.Plugs.SessionAuthenticationPlug)

View File

@ -5,7 +5,7 @@
defmodule Pleroma.Web.Plugs.OAuthPlugTest do
use Pleroma.Web.ConnCase, async: true
alias Pleroma.Plugs.OAuthPlug
alias Pleroma.Web.Plugs.OAuthPlug
import Pleroma.Factory
@session_opts [