diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2019-07-16 21:44:50 +0000 |
---|---|---|
committer | kaniini <ariadne@dereferenced.org> | 2019-07-16 21:44:50 +0000 |
commit | 10f82c88b88fa4d26f6fa57f9cf36439012b8d0c (patch) | |
tree | 1740bc35a064b2eb6a7e8beed0796d1ab7192a89 /lib/pleroma/web/router.ex | |
parent | 33fbb638cd815037741be25d0e47c3d16cc96971 (diff) | |
download | pleroma-10f82c88b88fa4d26f6fa57f9cf36439012b8d0c.tar.gz |
mastoapi password reset
added rate limit to password reset
configure rate limit in runtime
Diffstat (limited to 'lib/pleroma/web/router.ex')
-rw-r--r-- | lib/pleroma/web/router.ex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 3e5142e8a..52b8dc0bf 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -691,6 +691,8 @@ defmodule Pleroma.Web.Router do get("/web/login", MastodonAPIController, :login) delete("/auth/sign_out", MastodonAPIController, :logout) + post("/auth/password", MastodonAPIController, :password_reset) + scope [] do pipe_through(:oauth_read_or_public) get("/web/*path", MastodonAPIController, :index) |