@@ -22,13 +22,13 @@ discard block |
||
22 | 22 | */ |
23 | 23 | |
24 | 24 | script('settings', [ |
25 | - 'settings', |
|
26 | - 'templates', |
|
27 | - 'vue-settings-personal-security', |
|
25 | + 'settings', |
|
26 | + 'templates', |
|
27 | + 'vue-settings-personal-security', |
|
28 | 28 | ]); |
29 | 29 | |
30 | 30 | if($_['passwordChangeSupported']) { |
31 | - script('settings', 'security_password'); |
|
31 | + script('settings', 'security_password'); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | ?> |
@@ -71,29 +71,29 @@ discard block |
||
71 | 71 | <li> |
72 | 72 | <?php |
73 | 73 | |
74 | - /** @var \OCP\Authentication\TwoFactorAuth\IProvidesPersonalSettings $provider */ |
|
75 | - $provider = $data['provider']; |
|
76 | - //Handle 2FA provider icons and theme |
|
77 | - if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) { |
|
78 | - if ($_['themedark']) { |
|
79 | - $icon = $provider->getLightIcon(); |
|
80 | - } |
|
81 | - else { |
|
82 | - $icon = $provider->getDarkIcon(); |
|
83 | - } |
|
84 | - //fallback icon if the 2factor provider doesn't provide an icon. |
|
85 | - } else { |
|
86 | - if ($_['themedark']) { |
|
87 | - $icon = image_path('core', 'actions/password-white.svg'); |
|
88 | - } |
|
89 | - else { |
|
90 | - $icon = image_path('core', 'actions/password.svg'); |
|
91 | - } |
|
74 | + /** @var \OCP\Authentication\TwoFactorAuth\IProvidesPersonalSettings $provider */ |
|
75 | + $provider = $data['provider']; |
|
76 | + //Handle 2FA provider icons and theme |
|
77 | + if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) { |
|
78 | + if ($_['themedark']) { |
|
79 | + $icon = $provider->getLightIcon(); |
|
80 | + } |
|
81 | + else { |
|
82 | + $icon = $provider->getDarkIcon(); |
|
83 | + } |
|
84 | + //fallback icon if the 2factor provider doesn't provide an icon. |
|
85 | + } else { |
|
86 | + if ($_['themedark']) { |
|
87 | + $icon = image_path('core', 'actions/password-white.svg'); |
|
88 | + } |
|
89 | + else { |
|
90 | + $icon = image_path('core', 'actions/password.svg'); |
|
91 | + } |
|
92 | 92 | |
93 | - } |
|
94 | - /** @var \OCP\Authentication\TwoFactorAuth\IPersonalProviderSettings $settings */ |
|
95 | - $settings = $data['settings']; |
|
96 | - ?> |
|
93 | + } |
|
94 | + /** @var \OCP\Authentication\TwoFactorAuth\IPersonalProviderSettings $settings */ |
|
95 | + $settings = $data['settings']; |
|
96 | + ?> |
|
97 | 97 | <h3> |
98 | 98 | <img class="two-factor-provider-settings-icon" src="<?php p($icon) ?>" alt=""> |
99 | 99 | <?php p($provider->getDisplayName()) ?> |