Redirect not logged-in users to the MastoFE login page on private instances

This commit is contained in:
Sergey Suprunenko 2019-07-29 16:17:22 +00:00 committed by kaniini
commit c0e258cf21
3 changed files with 17 additions and 1 deletions

View file

@ -698,7 +698,7 @@ defmodule Pleroma.Web.Router do
post("/auth/password", MastodonAPIController, :password_reset)
scope [] do
pipe_through(:oauth_read_or_public)
pipe_through(:oauth_read)
get("/web/*path", MastodonAPIController, :index)
end
end