From: Hypolite Petovan Date: Wed, 25 Oct 2023 00:26:34 +0000 (-0400) Subject: Fix redirections in two-factor authentication settings index page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7ebf4d51cac1b0d6fe2417c414e449b39ee925a4;p=friendica.git Fix redirections in two-factor authentication settings index page - FoundException are used to redirect users --- 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())); }