aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-06-24 10:44:50 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-10-13 16:43:56 +0300
commitd6cb1a3b4627b40b9d347e4b05d0589e3a584166 (patch)
treedb26a70ffd6a69c4cd308e6f78678adfaa1beeed
parent99e4ed21b19d989112cf26141c3f87f9fe12b72b (diff)
downloadpleroma-d6cb1a3b4627b40b9d347e4b05d0589e3a584166.tar.gz
ExpectAuthenticatedCheckPlug module name
-rw-r--r--lib/pleroma/web.ex2
-rw-r--r--lib/pleroma/web/plugs/expect_authenticated_check_plug.ex2
-rw-r--r--lib/pleroma/web/router.ex2
-rw-r--r--test/pleroma/web/plugs/plug_helper_test.exs2
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/pleroma/web.ex b/lib/pleroma/web.ex
index 4056d161d..34656c953 100644
--- a/lib/pleroma/web.ex
+++ b/lib/pleroma/web.ex
@@ -22,7 +22,7 @@ defmodule Pleroma.Web do
alias Pleroma.Plugs.EnsureAuthenticatedPlug
alias Pleroma.Plugs.EnsurePublicOrAuthenticatedPlug
- alias Pleroma.Plugs.ExpectAuthenticatedCheckPlug
+ alias Pleroma.Web.Plugs.ExpectAuthenticatedCheckPlug
alias Pleroma.Web.Plugs.ExpectPublicOrAuthenticatedCheckPlug
alias Pleroma.Web.Plugs.OAuthScopesPlug
alias Pleroma.Web.Plugs.PlugHelper
diff --git a/lib/pleroma/web/plugs/expect_authenticated_check_plug.ex b/lib/pleroma/web/plugs/expect_authenticated_check_plug.ex
index 66b8d5de5..1fa742717 100644
--- a/lib/pleroma/web/plugs/expect_authenticated_check_plug.ex
+++ b/lib/pleroma/web/plugs/expect_authenticated_check_plug.ex
@@ -2,7 +2,7 @@
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
-defmodule Pleroma.Plugs.ExpectAuthenticatedCheckPlug do
+defmodule Pleroma.Web.Plugs.ExpectAuthenticatedCheckPlug do
@moduledoc """
Marks `Pleroma.Plugs.EnsureAuthenticatedPlug` as expected to be executed later in plug chain.
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex
index ed22158bc..b9d8c4845 100644
--- a/lib/pleroma/web/router.ex
+++ b/lib/pleroma/web/router.ex
@@ -17,7 +17,7 @@ defmodule Pleroma.Web.Router do
end
pipeline :expect_authentication do
- plug(Pleroma.Plugs.ExpectAuthenticatedCheckPlug)
+ plug(Pleroma.Web.Plugs.ExpectAuthenticatedCheckPlug)
end
pipeline :expect_public_instance_or_authentication do
diff --git a/test/pleroma/web/plugs/plug_helper_test.exs b/test/pleroma/web/plugs/plug_helper_test.exs
index adb0bb111..670d699f0 100644
--- a/test/pleroma/web/plugs/plug_helper_test.exs
+++ b/test/pleroma/web/plugs/plug_helper_test.exs
@@ -5,7 +5,7 @@
defmodule Pleroma.Web.Plugs.PlugHelperTest do
@moduledoc "Tests for the functionality added via `use Pleroma.Web, :plug`"
- alias Pleroma.Plugs.ExpectAuthenticatedCheckPlug
+ alias Pleroma.Web.Plugs.ExpectAuthenticatedCheckPlug
alias Pleroma.Web.Plugs.ExpectPublicOrAuthenticatedCheckPlug
alias Pleroma.Web.Plugs.PlugHelper