Call ConfirmUserPlug from Router, not Endpoint

This commit is contained in:
Alex Gleason 2021-01-06 15:15:47 -06:00
parent fee0c6a2cb
commit 7b8dbaff31
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 1 additions and 2 deletions

View file

@ -169,8 +169,6 @@ defmodule Pleroma.Web.Endpoint do
plug(MetricsExporterCaller)
plug(Pleroma.Web.Plugs.ConfirmUserPlug)
plug(Pleroma.Web.Router)
@doc """

View file

@ -56,6 +56,7 @@ defmodule Pleroma.Web.Router do
plug(Pleroma.Web.Plugs.UserEnabledPlug)
plug(Pleroma.Web.Plugs.SetUserSessionIdPlug)
plug(Pleroma.Web.Plugs.EnsureUserTokenAssignsPlug)
plug(Pleroma.Web.Plugs.ConfirmUserPlug)
end
pipeline :base_api do