diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2019-01-21 18:08:20 +0100 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2019-01-21 18:08:20 +0100 |
commit | cb487efa24d55d01f7a093064955a71fb1ec2085 (patch) | |
tree | 1251ad531eaf941dfd6a7b6a3a966a57e213b03c /settings/templates | |
parent | 6a50df9ea9f2a7fe28c3e0fca78e04a7d19ea1da (diff) | |
download | nextcloud-server-cb487efa24d55d01f7a093064955a71fb1ec2085.tar.gz nextcloud-server-cb487efa24d55d01f7a093064955a71fb1ec2085.zip |
Move 2FA section above devices & sessions section
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/settings/personal/security.php | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/settings/templates/settings/personal/security.php b/settings/templates/settings/personal/security.php index bba4a5f8e7d..e6087175c79 100644 --- a/settings/templates/settings/personal/security.php +++ b/settings/templates/settings/personal/security.php @@ -63,6 +63,32 @@ if($_['passwordChangeSupported']) { </div> <?php } ?> +<div id="two-factor-auth" class="section"> + <h2><?php p($l->t('Two-Factor Authentication'));?></h2> + <ul> + <?php foreach ($_['twoFactorProviderData']['providers'] as $data) { ?> + <li> + <?php + /** @var \OCP\Authentication\TwoFactorAuth\IProvidesPersonalSettings $provider */ + $provider = $data['provider']; + if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) { + $icon = $provider->getDarkIcon(); + } else { + $icon = image_path('core', 'actions/password.svg'); + } + /** @var \OCP\Authentication\TwoFactorAuth\IPersonalProviderSettings $settings */ + $settings = $data['settings']; + ?> + <h3> + <img class="two-factor-provider-settings-icon" src="<?php p($icon) ?>" alt=""> + <?php p($provider->getDisplayName()) ?> + </h3> + <?php print_unescaped($settings->getBody()->fetchPage()) ?> + </li> + <?php } ?> + </ul> +</div> + <div id="security" class="section"> <h2><?php p($l->t('Devices & sessions'));?></h2> <p class="settings-hint hidden-when-empty"><?php p($l->t('Web, desktop and mobile clients currently logged in to your account.'));?></p> @@ -99,29 +125,3 @@ if($_['passwordChangeSupported']) { </div> </div> </div> - -<div id="two-factor-auth" class="section"> - <h2><?php p($l->t('Two-Factor Authentication'));?></h2> - <ul> - <?php foreach ($_['twoFactorProviderData']['providers'] as $data) { ?> - <li> - <?php - /** @var \OCP\Authentication\TwoFactorAuth\IProvidesPersonalSettings $provider */ - $provider = $data['provider']; - if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) { - $icon = $provider->getDarkIcon(); - } else { - $icon = image_path('core', 'actions/password.svg'); - } - /** @var \OCP\Authentication\TwoFactorAuth\IPersonalProviderSettings $settings */ - $settings = $data['settings']; - ?> - <h3> - <img class="two-factor-provider-settings-icon" src="<?php p($icon) ?>" alt=""> - <?php p($provider->getDisplayName()) ?> - </h3> - <?php print_unescaped($settings->getBody()->fetchPage()) ?> - </li> - <?php } ?> - </ul> -</div> |