UserEnabledPlug module name

This commit is contained in:
Alexander Strizhakov 2020-06-24 09:02:27 +03:00
parent 61c609884c
commit ebd6dd7c53
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.UserEnabledPlug do
defmodule Pleroma.Web.Plugs.UserEnabledPlug do
import Plug.Conn
alias Pleroma.User

View File

@ -13,7 +13,7 @@ defmodule Pleroma.Web.Router do
pipeline :oauth do
plug(:fetch_session)
plug(Pleroma.Plugs.OAuthPlug)
plug(Pleroma.Plugs.UserEnabledPlug)
plug(Pleroma.Web.Plugs.UserEnabledPlug)
end
pipeline :expect_authentication do
@ -34,7 +34,7 @@ defmodule Pleroma.Web.Router do
end
pipeline :after_auth do
plug(Pleroma.Plugs.UserEnabledPlug)
plug(Pleroma.Web.Plugs.UserEnabledPlug)
plug(Pleroma.Plugs.SetUserSessionIdPlug)
plug(Pleroma.Plugs.EnsureUserKeyPlug)
end

View File

@ -5,7 +5,7 @@
defmodule Pleroma.Web.Plugs.UserEnabledPlugTest do
use Pleroma.Web.ConnCase, async: true
alias Pleroma.Plugs.UserEnabledPlug
alias Pleroma.Web.Plugs.UserEnabledPlug
import Pleroma.Factory
setup do: clear_config([:instance, :account_activation_required])