From bf568745dc2bb56dc2b6f6b8b059f157edcc62e0 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 7 Nov 2021 09:33:22 -0500 Subject: [PATCH] Allow password resets and account unlocks on banned accounts (fixes derpibooru/philomena#259) --- lib/philomena_web/router.ex | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/philomena_web/router.ex b/lib/philomena_web/router.ex index 2479a2d1..e0606dc8 100644 --- a/lib/philomena_web/router.ex +++ b/lib/philomena_web/router.ex @@ -77,6 +77,15 @@ defmodule PhilomenaWeb.Router do ] resources "/registrations", RegistrationController, only: [:new, :create], singleton: true + end + + scope "/", PhilomenaWeb do + pipe_through [ + :browser, + :ensure_tor_authorized, + :redirect_if_user_is_authenticated + ] + resources "/passwords", PasswordController, only: [:new, :create, :edit, :update] resources "/confirmations", ConfirmationController, only: [:new, :create, :show] resources "/unlocks", UnlockController, only: [:new, :create, :show]