OAuthPlug module name

stable
Alexander Strizhakov 4 years ago
parent a6d8cef33e
commit 96d320bdfe
No known key found for this signature in database
GPG Key ID: 022896A53AEF1381

@ -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

@ -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)

@ -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 [

Loading…
Cancel
Save