Fix redirections in two-factor authentication settings index page

- FoundException are used to redirect users
This commit is contained in:
Hypolite Petovan 2023-10-24 20:26:34 -04:00
parent 4a90394c38
commit 7ebf4d51ca
1 changed files with 2 additions and 1 deletions

View 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()));
}