Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-10-11 12:56:55 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-10-11 12:56:55 +0300
commit140100b23e47716d4c45d1e2aef8df239f093055 (patch)
tree21273a8a5aca61036d0cba92a693fec119cf4c8f /lib
parent7c526955bd329dada59e9f426589550baf34cb18 (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')
-rw-r--r--lib/Controller/SAMLController.php11
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');
+ }
+
}