Refactor skipped plugs into Pleroma.Web functions
Speeds up recompilation by reducing compile cycles
This commit is contained in:
parent
d896e45faf
commit
45b7325b9e
13 changed files with 22 additions and 57 deletions
|
|
@ -32,10 +32,7 @@ defmodule Pleroma.Web.OAuth.OAuthController do
|
|||
plug(:fetch_session)
|
||||
plug(:fetch_flash)
|
||||
|
||||
plug(:skip_plug, [
|
||||
Pleroma.Web.Plugs.OAuthScopesPlug,
|
||||
Pleroma.Web.Plugs.EnsurePublicOrAuthenticatedPlug
|
||||
])
|
||||
plug(:skip_auth)
|
||||
|
||||
plug(RateLimiter, [name: :authentication] when action == :create_authorization)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue