Fix redirections in two-factor authentication settings index page
- FoundException are used to redirect users
This commit is contained in:
parent
4a90394c38
commit
7ebf4d51ca
|
@ -115,7 +115,8 @@ class Index extends BaseSettings
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} catch (FoundException $exception) {
|
} catch (FoundException $exception) {
|
||||||
// Nothing to do here
|
// Redirection, passing along
|
||||||
|
throw $exception;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->systemMessages->addNotice($this->t($e->getMessage()));
|
$this->systemMessages->addNotice($this->t($e->getMessage()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue