2017-06-22 11:33:45 -04:00
|
|
|
<?php
|
2018-09-26 10:25:18 -04:00
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2017-06-22 11:33:45 -04:00
|
|
|
/**
|
2024-05-30 14:13:41 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2017-06-22 11:33:45 -04:00
|
|
|
*/
|
2025-03-03 05:38:39 -05:00
|
|
|
|
2017-06-22 11:33:45 -04:00
|
|
|
namespace OCA\TwoFactorBackupCodes\Settings;
|
|
|
|
|
|
2025-10-28 13:45:44 -04:00
|
|
|
use OCA\TwoFactorBackupCodes\AppInfo\Application;
|
2018-09-26 10:25:18 -04:00
|
|
|
use OCP\Authentication\TwoFactorAuth\IPersonalProviderSettings;
|
2025-03-03 05:38:39 -05:00
|
|
|
use OCP\Server;
|
|
|
|
|
use OCP\Template\ITemplate;
|
|
|
|
|
use OCP\Template\ITemplateManager;
|
2025-11-17 05:58:02 -05:00
|
|
|
use OCP\Util;
|
2017-06-22 11:33:45 -04:00
|
|
|
|
2018-09-26 10:25:18 -04:00
|
|
|
class Personal implements IPersonalProviderSettings {
|
2026-04-28 13:35:30 -04:00
|
|
|
#[\Override]
|
2025-03-03 05:38:39 -05:00
|
|
|
public function getBody(): ITemplate {
|
2025-11-17 05:58:02 -05:00
|
|
|
Util::addScript(Application::APP_ID, 'settings-personal');
|
|
|
|
|
Util::addStyle(Application::APP_ID, 'settings-personal');
|
2025-10-28 13:45:44 -04:00
|
|
|
return Server::get(ITemplateManager::class)
|
|
|
|
|
->getTemplate('twofactor_backupcodes', 'personal');
|
2017-06-22 11:33:45 -04:00
|
|
|
}
|
|
|
|
|
}
|