diff options
author | Greta Doci <gretadoci@gmail.com> | 2019-05-17 13:00:08 +0200 |
---|---|---|
committer | Greta Doci <gretadoci@gmail.com> | 2019-05-28 17:17:04 +0200 |
commit | 536b4106bb9d48caf8a94becd94483ab57c73299 (patch) | |
tree | 1b4f5564e45ba4f2560f5e689080bd35fce6bf30 /lib/private/Settings | |
parent | 74ad4cce838172a51d441ffd53b7cae936f9dbb3 (diff) | |
download | nextcloud-server-536b4106bb9d48caf8a94becd94483ab57c73299.tar.gz nextcloud-server-536b4106bb9d48caf8a94becd94483ab57c73299.zip |
Fix 2fa icons in dark theme, fix #13643
Signed-off-by: Greta Doci <gretadoci@gmail.com>
Diffstat (limited to 'lib/private/Settings')
-rw-r--r-- | lib/private/Settings/Personal/Security.php | 8 |
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) ]); } |