blob: 2b5f56ddb685c8b62b75a5e5df0cab1cfccb6082 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
set_include_path(get_include_path().PATH_SEPARATOR.__DIR__.'/3rdparty');
OCP\Util::addScript( 'user_openid_provider', 'settings' );
OCP\Util::addStyle( 'user_openid_provider', 'settings' );
$storage = new OC_OpenIdProviderStorage();
$trusted_sites = $storage->getTrustedSites('/?'.OCP\User::getUser());
if (empty($trusted_sites)) {
return;
}
$tmpl = new OCP\Template( 'user_openid_provider', 'settings');
$tmpl->assign('trusted_sites', $trusted_sites);
return $tmpl->fetchPage();
|