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

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2016-10-01 20:26:58 +0300
committerbrantje <brantje@gmail.com>2016-10-03 11:19:43 +0300
commit9f779087cabb994438aecbb27b6ba01aee3d3305 (patch)
treee15ef4f831b08f4ad89c03672b11185aa113970e /controller/pagecontroller.php
parent042bf4b26da7c6e6a7a888bc0cc2fd8d72467ff0 (diff)
Add public share page
Diffstat (limited to 'controller/pagecontroller.php')
-rw-r--r--controller/pagecontroller.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/controller/pagecontroller.php b/controller/pagecontroller.php
index 1520cd02..c93482f6 100644
--- a/controller/pagecontroller.php
+++ b/controller/pagecontroller.php
@@ -48,7 +48,16 @@ class PageController extends Controller {
*/
public function bookmarklet($url='',$title='') {
$params = array('url' => $url, 'label' => $title);
- return new TemplateResponse('passman', 'bookmarklet', $params);
+
+ }
+
+ /**
+ * @NoAdminRequired
+ * @NoCSRFRequired
+ * @PublicPage
+ */
+ public function publicSharePage($shareKey) {
+ return new TemplateResponse('passman', 'public_share');
}
} \ No newline at end of file