projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'feature/static-fe' into 'develop'
[akkoma]
/
lib
/
pleroma
/
web
/
oauth
/
oauth_controller.ex
diff --git
a/lib/pleroma/web/oauth/oauth_controller.ex
b/lib/pleroma/web/oauth/oauth_controller.ex
index 6fba9f96883a5e72e16c6b7e905cf87da42d0553..2aee8cab2bab4c384f205c04a96c499764514e97 100644
(file)
--- 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
use Pleroma.Web, :controller
alias Pleroma.Helpers.UriHelper
+ alias Pleroma.Plugs.RateLimiter
alias Pleroma.Registration
alias Pleroma.Repo
alias Pleroma.User
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(: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)
action_fallback(Pleroma.Web.OAuth.FallbackController)