aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/mastodon_api/controllers/auth_controller.ex
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-11-11 12:13:06 +0000
committerlain <lain@soykaf.club>2019-11-11 12:13:06 +0000
commite73cc742b92ff957c234f395035ade9948088bf0 (patch)
tree6b71d1a382fdb4dbcf2510397bbd59405afc79a4 /lib/pleroma/web/mastodon_api/controllers/auth_controller.ex
parent7438c177d9f57e8779b979ca553c3b501726efb3 (diff)
parent94627baa5cca524fe0c4f7043e25d71ed245626a (diff)
downloadpleroma-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/mastodon_api/controllers/auth_controller.ex')
-rw-r--r--lib/pleroma/web/mastodon_api/controllers/auth_controller.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/controllers/auth_controller.ex b/lib/pleroma/web/mastodon_api/controllers/auth_controller.ex
index bfd5120ba..d9e51de7f 100644
--- a/lib/pleroma/web/mastodon_api/controllers/auth_controller.ex
+++ b/lib/pleroma/web/mastodon_api/controllers/auth_controller.ex
@@ -15,7 +15,7 @@ defmodule Pleroma.Web.MastodonAPI.AuthController do
@local_mastodon_name "Mastodon-Local"
- plug(Pleroma.Plugs.RateLimiter, :password_reset when action == :password_reset)
+ plug(Pleroma.Plugs.RateLimiter, [name: :password_reset] when action == :password_reset)
@doc "GET /web/login"
def login(%{assigns: %{user: %User{}}} = conn, _params) do