summaryrefslogtreecommitdiffstats
path: root/apps/files_external/personal.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-03 18:29:24 +0100
committerRobin Appelman <icewind@owncloud.com>2016-02-04 14:57:17 +0100
commit9dfe9f77f294a00b65e7f93afc336df17dc221c9 (patch)
treef0ec873d4f9e2c42e3029073d8bc6484f6f97ba5 /apps/files_external/personal.php
parent899444103a30a157a2112ca7389e9b047256b72d (diff)
downloadnextcloud-server-9dfe9f77f294a00b65e7f93afc336df17dc221c9.tar.gz
nextcloud-server-9dfe9f77f294a00b65e7f93afc336df17dc221c9.zip
Add global auth backend for files external
Diffstat (limited to 'apps/files_external/personal.php')
-rw-r--r--apps/files_external/personal.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_external/personal.php b/apps/files_external/personal.php
index 4d8f480ecc0..f180b7e8f5c 100644
--- a/apps/files_external/personal.php
+++ b/apps/files_external/personal.php
@@ -30,6 +30,7 @@ use \OCA\Files_External\Service\BackendService;
$appContainer = \OC_Mount_Config::$app->getContainer();
$backendService = $appContainer->query('OCA\Files_External\Service\BackendService');
$userStoragesService = $appContainer->query('OCA\Files_external\Service\UserStoragesService');
+$globalAuth = $appContainer->query('OCA\Files_External\Lib\Auth\Password\GlobalAuth');
$tmpl = new OCP\Template('files_external', 'settings');
$tmpl->assign('encryptionEnabled', \OC::$server->getEncryptionManager()->isEnabled());
@@ -38,4 +39,7 @@ $tmpl->assign('storages', $userStoragesService->getStorages());
$tmpl->assign('dependencies', OC_Mount_Config::dependencyMessage($backendService->getBackends()));
$tmpl->assign('backends', $backendService->getAvailableBackends());
$tmpl->assign('authMechanisms', $backendService->getAuthMechanisms());
+$uid = \OC::$server->getUserSession()->getUser()->getUID();
+$tmpl->assign('globalCredentials', $globalAuth->getAuth($uid));
+$tmpl->assign('globalCredentialsUid', $uid);
return $tmpl->fetchPage();