]> git.mxchange.org Git - friendica.git/commitdiff
Fix redirections in two-factor authentication settings index page
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 25 Oct 2023 00:26:34 +0000 (20:26 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 25 Oct 2023 00:26:34 +0000 (20:26 -0400)
- FoundException are used to redirect users

src/Module/Settings/TwoFactor/Index.php

index 43c96f6f53da48aba72c9b589ae4152ca549ba34..29acacc604140671d03a864cc84cd142475ac8d8 100644 (file)
@@ -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()));
                }