From 483f915a2d7c2d8bba36a9adaee60b41bf45cf78 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Fri, 14 Jul 2023 22:16:31 -0300 Subject: [PATCH] Fill Security component with values Load from initial state Signed-off-by: Vitor Mattos --- lib/Controller/PageController.php | 4 +++- src/views/Security.vue | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 47bd39e..bfdc83e 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -4,6 +4,7 @@ use OCA\MyCompany\AppInfo\Application; use OCA\Settings\Settings\Personal\PersonalInfo; +use OCA\Settings\Settings\Personal\Security\Authtokens; use OCP\AppFramework\Controller; use OCP\AppFramework\Http\Attribute\NoAdminRequired; use OCP\AppFramework\Http\Attribute\NoCSRFRequired; @@ -14,7 +15,8 @@ class PageController extends Controller { public function __construct( IRequest $request, - private PersonalInfo $personalInfo + private PersonalInfo $personalInfo, + private Authtokens $authTokens, ) { parent::__construct(Application::APP_ID, $request); } diff --git a/src/views/Security.vue b/src/views/Security.vue index 61b065e..8d85fa3 100644 --- a/src/views/Security.vue +++ b/src/views/Security.vue @@ -3,18 +3,32 @@

{{ t('my_company', 'Security') }}

+