f7cloud_client/apps/twofactor_totp/lib/Activity/Setting.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

50 lines
818 B
PHP

<?php
declare(strict_types=1);
/*
* SPDX-FileCopyrightText: 2016 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
namespace OCA\TwoFactorTOTP\Activity;
use OCP\Activity\ISetting;
use OCP\IL10N;
class Setting implements ISetting {
public function __construct(
private IL10N $l10n,
) {
}
public function canChangeMail(): bool {
return false;
}
public function canChangeStream(): bool {
return false;
}
public function getIdentifier(): string {
return 'twofactor_totp';
}
public function getName(): string {
return $this->l10n->t('TOTP (Authenticator app)');
}
public function getPriority(): int {
return 10;
}
public function isDefaultEnabledMail(): bool {
return true;
}
public function isDefaultEnabledStream(): bool {
return true;
}
}