diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-05-18 13:03:22 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@owncloud.com> | 2016-05-23 10:11:12 +0300 |
commit | 12431aa3997154aaea4eec11c2dd65f9e5dbe179 (patch) | |
tree | 8395c270b144401f53e5ed048f94a28002410e3d /settings/Application.php | |
parent | 357d342467b9200f190376a2bd224fa7b803b45a (diff) |
list user's auth tokens on the personal settings page
Diffstat (limited to 'settings/Application.php')
-rw-r--r-- | settings/Application.php | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/settings/Application.php b/settings/Application.php index 5b84d028abf..7069fc9c35d 100644 --- a/settings/Application.php +++ b/settings/Application.php @@ -29,7 +29,9 @@ namespace OC\Settings; use OC\Files\View; +use OC\Server; use OC\Settings\Controller\AppSettingsController; +use OC\Settings\Controller\AuthSettingsController; use OC\Settings\Controller\CertificateController; use OC\Settings\Controller\CheckSetupController; use OC\Settings\Controller\EncryptionController; @@ -39,10 +41,9 @@ use OC\Settings\Controller\MailSettingsController; use OC\Settings\Controller\SecuritySettingsController; use OC\Settings\Controller\UsersController; use OC\Settings\Middleware\SubadminMiddleware; -use \OCP\AppFramework\App; +use OCP\AppFramework\App; use OCP\IContainer; -use \OCP\Util; -use OC\Server; +use OCP\Util; /** * @package OC\Settings @@ -97,6 +98,15 @@ class Application extends App { $c->query('OcsClient') ); }); + $container->registerService('AuthSettingsController', function(IContainer $c) { + return new AuthSettingsController( + $c->query('AppName'), + $c->query('Request'), + $c->query('ServerContainer')->query('OC\Authentication\Token\IProvider'), + $c->query('UserManager'), + $c->query('UserId') + ); + }); $container->registerService('SecuritySettingsController', function(IContainer $c) { return new SecuritySettingsController( $c->query('AppName'), |