Add public share page

This commit is contained in:
brantje 2016-10-01 19:26:58 +02:00
parent 3dc19d2371
commit 2311247064
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F
3 changed files with 12 additions and 1 deletions

View file

@ -21,6 +21,7 @@ return [
'routes' => [
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
['name' => 'page#bookmarklet', 'url' => '/bookmarklet', 'verb' => 'GET'],
['name' => 'page#publicSharePage', 'url' => '/share/public', 'verb' => 'GET'],
//Vault
['name' => 'vault#listVaults', 'url' => '/api/v2/vaults', 'verb' => 'GET'],

View file

@ -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');
}
}

View file

@ -0,0 +1 @@
Public shared credential