summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-06-24 11:18:42 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-10-13 16:43:58 +0300
commit3ef4e9d17008a220f02531f70aad9568b995e396 (patch)
tree1e72565c2d696637baef5e3c3da0042a9a22ec95 /lib
parentc497558d433216c12a3335d138716a10d464a922 (diff)
AdminSecretAuthenticationPlug module name
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/plugs/admin_secret_authentication_plug.ex2
-rw-r--r--lib/pleroma/web/router.ex2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/plugs/admin_secret_authentication_plug.ex b/lib/pleroma/web/plugs/admin_secret_authentication_plug.ex
index 2e54df47a..9c7454443 100644
--- a/lib/pleroma/web/plugs/admin_secret_authentication_plug.ex
+++ b/lib/pleroma/web/plugs/admin_secret_authentication_plug.ex
@@ -2,7 +2,7 @@
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
-defmodule Pleroma.Plugs.AdminSecretAuthenticationPlug do
+defmodule Pleroma.Web.Plugs.AdminSecretAuthenticationPlug do
import Plug.Conn
alias Pleroma.Plugs.OAuthScopesPlug
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex
index 855e69077..d2d939989 100644
--- a/lib/pleroma/web/router.ex
+++ b/lib/pleroma/web/router.ex
@@ -64,7 +64,7 @@ defmodule Pleroma.Web.Router do
pipeline :admin_api do
plug(:expect_authentication)
plug(:base_api)
- plug(Pleroma.Plugs.AdminSecretAuthenticationPlug)
+ plug(Pleroma.Web.Plugs.AdminSecretAuthenticationPlug)
plug(:after_auth)
plug(Pleroma.Web.Plugs.EnsureAuthenticatedPlug)
plug(Pleroma.Web.Plugs.UserIsAdminPlug)