diff options
author | Roger Braun <rbraun@Bobble.local> | 2017-10-19 17:37:24 +0200 |
---|---|---|
committer | Roger Braun <rbraun@Bobble.local> | 2017-10-19 17:37:24 +0200 |
commit | 6af164f27b5a285fb1b1c8790a86db061c8fc28a (patch) | |
tree | c953271fc6329a179caf46e35114224cbe2ca846 /lib/pleroma/web/router.ex | |
parent | a17b2613795b24162e953dd457b411dddc0c902e (diff) | |
download | pleroma-6af164f27b5a285fb1b1c8790a86db061c8fc28a.tar.gz |
Add password reset.
Diffstat (limited to 'lib/pleroma/web/router.ex')
-rw-r--r-- | lib/pleroma/web/router.ex | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 6abf234c6..8497685a6 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -33,6 +33,16 @@ defmodule Pleroma.Web.Router do plug :accepts, ["html", "json"] end + pipeline :password_reset do + plug :accepts, ["html"] + end + + scope "/api/pleroma", Pleroma.Web.TwitterAPI do + pipe_through :password_reset + get "/password_reset/:token", UtilController, :show_password_reset + post "/password_reset", UtilController, :password_reset + end + scope "/oauth", Pleroma.Web.OAuth do get "/authorize", OAuthController, :authorize post "/authorize", OAuthController, :create_authorization |