summaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Settings/Personal/Security.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-01-29 20:13:23 +0100
committerGitHub <noreply@github.com>2020-01-29 20:13:23 +0100
commit53817f5fc20533d2b9da2ecff6bd96acf21b4e17 (patch)
tree6e91fedd594cdd5d475d72403f52e8997c1e59de /apps/settings/lib/Settings/Personal/Security.php
parentca964cfe9fa0c0e5b097e61933d67a45a5fa3b2d (diff)
parent34426a481faa5ff76317295305d7c6fad2c8534f (diff)
downloadnextcloud-server-53817f5fc20533d2b9da2ecff6bd96acf21b4e17.tar.gz
nextcloud-server-53817f5fc20533d2b9da2ecff6bd96acf21b4e17.zip
Merge pull request #19185 from nextcloud/enh/move_token_logic_to_token_settings
Move can create token logic
Diffstat (limited to 'apps/settings/lib/Settings/Personal/Security.php')
-rw-r--r--apps/settings/lib/Settings/Personal/Security.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/apps/settings/lib/Settings/Personal/Security.php b/apps/settings/lib/Settings/Personal/Security.php
index 5734eaa5ca3..192b082d6b1 100644
--- a/apps/settings/lib/Settings/Personal/Security.php
+++ b/apps/settings/lib/Settings/Personal/Security.php
@@ -50,9 +50,6 @@ use OCP\Settings\ISettings;
class Security implements ISettings {
- /** @var IInitialStateService */
- private $initialStateService;
-
/** @var IUserManager */
private $userManager;
@@ -68,13 +65,11 @@ class Security implements ISettings {
/** @var IConfig */
private $config;
- public function __construct(IInitialStateService $initialStateService,
- IUserManager $userManager,
+ public function __construct(IUserManager $userManager,
ProviderLoader $providerLoader,
IUserSession $userSession,
IConfig $config,
?string $UserId) {
- $this->initialStateService = $initialStateService;
$this->userManager = $userManager;
$this->providerLoader = $providerLoader;
$this->userSession = $userSession;
@@ -89,12 +84,6 @@ class Security implements ISettings {
$passwordChangeSupported = $user->canChangePassword();
}
- $this->initialStateService->provideInitialState(
- 'settings',
- 'can_create_app_token',
- $this->userSession->getImpersonatingUserID() === null
- );
-
return new TemplateResponse('settings', 'settings/personal/security', [
'passwordChangeSupported' => $passwordChangeSupported,
'twoFactorProviderData' => $this->getTwoFactorProviderData(),