diff options
author | lain <lain@soykaf.club> | 2019-11-11 12:13:06 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-11-11 12:13:06 +0000 |
commit | e73cc742b92ff957c234f395035ade9948088bf0 (patch) | |
tree | 6b71d1a382fdb4dbcf2510397bbd59405afc79a4 /lib/pleroma/web/oauth/oauth_controller.ex | |
parent | 7438c177d9f57e8779b979ca553c3b501726efb3 (diff) | |
parent | 94627baa5cca524fe0c4f7043e25d71ed245626a (diff) | |
download | pleroma-e73cc742b92ff957c234f395035ade9948088bf0.tar.gz |
Merge branch 'new-rate-limiter' into 'develop'
New rate limiter
See merge request pleroma/pleroma!1946
Diffstat (limited to 'lib/pleroma/web/oauth/oauth_controller.ex')
-rw-r--r-- | lib/pleroma/web/oauth/oauth_controller.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/oauth/oauth_controller.ex b/lib/pleroma/web/oauth/oauth_controller.ex index fe71aca8c..1b1394787 100644 --- a/lib/pleroma/web/oauth/oauth_controller.ex +++ b/lib/pleroma/web/oauth/oauth_controller.ex @@ -6,6 +6,7 @@ defmodule Pleroma.Web.OAuth.OAuthController do use Pleroma.Web, :controller alias Pleroma.Helpers.UriHelper + alias Pleroma.Plugs.RateLimiter alias Pleroma.Registration alias Pleroma.Repo alias Pleroma.User @@ -24,7 +25,7 @@ defmodule Pleroma.Web.OAuth.OAuthController do plug(:fetch_session) plug(:fetch_flash) - plug(Pleroma.Plugs.RateLimiter, :authentication when action == :create_authorization) + plug(RateLimiter, [name: :authentication] when action == :create_authorization) action_fallback(Pleroma.Web.OAuth.FallbackController) |