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/> # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only # SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Plugs.UserEnabledPlug do defmodule Pleroma.Web.Plugs.UserEnabledPlug do
import Plug.Conn import Plug.Conn
alias Pleroma.User alias Pleroma.User

View file

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

View file

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