From 7ebf4d51cac1b0d6fe2417c414e449b39ee925a4 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 24 Oct 2023 20:26:34 -0400 Subject: [PATCH] Fix redirections in two-factor authentication settings index page - FoundException are used to redirect users --- src/Module/Settings/TwoFactor/Index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Module/Settings/TwoFactor/Index.php b/src/Module/Settings/TwoFactor/Index.php index 43c96f6f53..29acacc604 100644 --- a/src/Module/Settings/TwoFactor/Index.php +++ b/src/Module/Settings/TwoFactor/Index.php @@ -115,7 +115,8 @@ class Index extends BaseSettings break; } } catch (FoundException $exception) { - // Nothing to do here + // Redirection, passing along + throw $exception; } catch (\Exception $e) { $this->systemMessages->addNotice($this->t($e->getMessage())); } -- 2.39.5