BasicAuthDecoderPlug module name
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Wed, 24 Jun 2020 08:13:19 +0000 (11:13 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Tue, 13 Oct 2020 13:43:58 +0000 (16:43 +0300)
lib/pleroma/web/plugs/basic_auth_decoder_plug.ex
lib/pleroma/web/router.ex
test/pleroma/web/plugs/basic_auth_decoder_plug_test.exs

index af7ecb0d8ff009e32d016d5af8cb697b67619b75..4dadfb0004526355f704f60ee7c4962b94225f3e 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
 # SPDX-License-Identifier: AGPL-3.0-only
 
-defmodule Pleroma.Plugs.BasicAuthDecoderPlug do
+defmodule Pleroma.Web.Plugs.BasicAuthDecoderPlug do
   import Plug.Conn
 
   def init(options) do
index 524674e1aaa206c6c205c9b4dc2145ea11c88b2c..46f007d3de625535bccc24a728dc9ff2a4bc5344 100644 (file)
@@ -26,7 +26,7 @@ defmodule Pleroma.Web.Router do
 
   pipeline :authenticate do
     plug(Pleroma.Web.Plugs.OAuthPlug)
-    plug(Pleroma.Plugs.BasicAuthDecoderPlug)
+    plug(Pleroma.Web.Plugs.BasicAuthDecoderPlug)
     plug(Pleroma.Web.Plugs.UserFetcherPlug)
     plug(Pleroma.Web.Plugs.SessionAuthenticationPlug)
     plug(Pleroma.Web.Plugs.LegacyAuthenticationPlug)
index 49f5ea238e37aa05a9a1508ba9ced695c89029ef..2d6af228cf757fcc00294fd57388cdfda2301d9f 100644 (file)
@@ -5,7 +5,7 @@
 defmodule Pleroma.Web.Plugs.BasicAuthDecoderPlugTest do
   use Pleroma.Web.ConnCase, async: true
 
-  alias Pleroma.Plugs.BasicAuthDecoderPlug
+  alias Pleroma.Web.Plugs.BasicAuthDecoderPlug
 
   defp basic_auth_enc(username, password) do
     "Basic " <> Base.encode64("#{username}:#{password}")