summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2019-05-29 06:56:52 +0200
committerGitHub <noreply@github.com>2019-05-29 06:56:52 +0200
commit866282f13f4237a29d560737b0f839a9f111723e (patch)
treee114e53fc232af2fc5a432f40d5f95c723950f3c /lib
parentb32ee3a0bb0abdfae4adee5a3b09fd86d0948ca2 (diff)
parent536b4106bb9d48caf8a94becd94483ab57c73299 (diff)
downloadnextcloud-server-866282f13f4237a29d560737b0f839a9f111723e.tar.gz
nextcloud-server-866282f13f4237a29d560737b0f839a9f111723e.zip
Start fixing 2fa icons in dark theme, ref #13643 (#15597)
Start fixing 2fa icons in dark theme, ref #13643
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Settings/Personal/Security.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/Settings/Personal/Security.php b/lib/private/Settings/Personal/Security.php
index eee1d9ae084..a009c6a12f4 100644
--- a/lib/private/Settings/Personal/Security.php
+++ b/lib/private/Settings/Personal/Security.php
@@ -42,6 +42,7 @@ use OCP\IUserManager;
use OCP\IUserSession;
use OCP\Session\Exceptions\SessionNotAvailableException;
use OCP\Settings\ISettings;
+use OCP\IConfig;
class Security implements ISettings {
@@ -69,6 +70,10 @@ class Security implements ISettings {
* @var string|null
*/
private $uid;
+ /**
+ *@var IConfig
+ */
+ private $config;
public function __construct(IUserManager $userManager,
TwoFactorManager $providerManager,
@@ -76,6 +81,7 @@ class Security implements ISettings {
ProviderLoader $providerLoader,
IUserSession $userSession,
ISession $session,
+ IConfig $config,
IInitialStateService $initialStateService,
?string $UserId) {
$this->userManager = $userManager;
@@ -86,6 +92,7 @@ class Security implements ISettings {
$this->session = $session;
$this->initialStateService = $initialStateService;
$this->uid = $UserId;
+ $this->config = $config;
}
/**
@@ -108,6 +115,7 @@ class Security implements ISettings {
return new TemplateResponse('settings', 'settings/personal/security', [
'passwordChangeSupported' => $passwordChangeSupported,
'twoFactorProviderData' => $this->getTwoFactorProviderData(),
+ 'themedark' => $this->config->getUserValue($this->uid, 'accessibility', 'theme', false)
]);
}