aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-12-18 21:08:52 +0100
committerlain <lain@soykaf.club>2018-12-18 21:08:52 +0100
commitf3eb414e282dd0e3bd5c60838e45c69cf21541e4 (patch)
tree64cd057ee1c2c5296cb70cb1f522874173ceb094 /lib/pleroma/web
parent443d59baa05165c3b5b7ab14f3eabd6f2eba09f2 (diff)
downloadpleroma-f3eb414e282dd0e3bd5c60838e45c69cf21541e4.tar.gz
Add a way to use the admin api without a user.
Diffstat (limited to 'lib/pleroma/web')
-rw-r--r--lib/pleroma/web/router.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex
index dd1985d6e..e988f1088 100644
--- a/lib/pleroma/web/router.ex
+++ b/lib/pleroma/web/router.ex
@@ -38,6 +38,7 @@ defmodule Pleroma.Web.Router do
plug(Pleroma.Plugs.SessionAuthenticationPlug)
plug(Pleroma.Plugs.LegacyAuthenticationPlug)
plug(Pleroma.Plugs.AuthenticationPlug)
+ plug(Pleroma.Plugs.AdminSecretAuthenticationPlug)
plug(Pleroma.Plugs.UserEnabledPlug)
plug(Pleroma.Plugs.SetUserSessionIdPlug)
plug(Pleroma.Plugs.EnsureAuthenticatedPlug)