diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-11 12:56:55 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-11 12:56:55 +0300 |
commit | 140100b23e47716d4c45d1e2aef8df239f093055 (patch) | |
tree | 21273a8a5aca61036d0cba92a693fec119cf4c8f /lib/Controller | |
parent | 7c526955bd329dada59e9f426589550baf34cb18 (diff) |
Actually add error page
* The base route now has a function as well so it is not just some empty
route
* We now actually have an error page
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/SAMLController.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Controller/SAMLController.php b/lib/Controller/SAMLController.php index fda133b7..510aceaf 100644 --- a/lib/Controller/SAMLController.php +++ b/lib/Controller/SAMLController.php @@ -461,4 +461,15 @@ class SAMLController extends Controller { return true; } + /** + * @PublicPage + * @NoCSRFRequired + * + * @return Http\TemplateResponse + */ + public function base() { + $message = $this->l->t('This page should not be visted directly.'); + return new Http\TemplateResponse($this->appName, 'error', ['message' => $message], 'guest'); + } + } |