Fix redirections in two-factor authentication settings index page
- FoundException are used to redirect users
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user