[#1260] Rate-limiting for create authentication and related requests.

This commit is contained in:
Ivan Tashkinov 2019-09-17 16:16:11 +03:00
commit e7afb67c5c
4 changed files with 15 additions and 2 deletions

View file

@ -24,6 +24,7 @@ defmodule Pleroma.Web.OAuth.OAuthController do
plug(:fetch_session)
plug(:fetch_flash)
plug(Pleroma.Plugs.RateLimiter, :authentication when action == :create_authorization)
action_fallback(Pleroma.Web.OAuth.FallbackController)