From cb487efa24d55d01f7a093064955a71fb1ec2085 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Mon, 21 Jan 2019 18:08:20 +0100 Subject: [PATCH 1/2] Move 2FA section above devices & sessions section Signed-off-by: Jan-Christoph Borchardt --- .../templates/settings/personal/security.php | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/settings/templates/settings/personal/security.php b/settings/templates/settings/personal/security.php index bba4a5f8e7..e6087175c7 100644 --- a/settings/templates/settings/personal/security.php +++ b/settings/templates/settings/personal/security.php @@ -63,6 +63,32 @@ if($_['passwordChangeSupported']) { +
+

t('Two-Factor Authentication'));?>

+
    + +
  • + getDarkIcon(); + } else { + $icon = image_path('core', 'actions/password.svg'); + } + /** @var \OCP\Authentication\TwoFactorAuth\IPersonalProviderSettings $settings */ + $settings = $data['settings']; + ?> +

    + + getDisplayName()) ?> +

    + getBody()->fetchPage()) ?> +
  • + +
+
+

t('Devices & sessions'));?>

t('Web, desktop and mobile clients currently logged in to your account.'));?>

@@ -99,29 +125,3 @@ if($_['passwordChangeSupported']) {
- -
-

t('Two-Factor Authentication'));?>

-
    - -
  • - getDarkIcon(); - } else { - $icon = image_path('core', 'actions/password.svg'); - } - /** @var \OCP\Authentication\TwoFactorAuth\IPersonalProviderSettings $settings */ - $settings = $data['settings']; - ?> -

    - - getDisplayName()) ?> -

    - getBody()->fetchPage()) ?> -
  • - -
-
From 1f47c6976a203c97f0b60a438da7db98bef0096c Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Mon, 21 Jan 2019 18:41:06 +0100 Subject: [PATCH 2/2] Add documentation link and settings-hint to 2FA settings Signed-off-by: Jan-Christoph Borchardt --- settings/css/settings.scss | 6 +++++- settings/templates/settings/personal/security.php | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/settings/css/settings.scss b/settings/css/settings.scss index d384ef2657..d3ab389b7c 100644 --- a/settings/css/settings.scss +++ b/settings/css/settings.scss @@ -1239,9 +1239,13 @@ table.grid td.date { .icon-info { padding: 11px 20px; vertical-align: super; + opacity: .5; } -#shareAPI h2, #encryptionAPI h2, #mail_general_settings h2 { +#two-factor-auth h2, +#shareAPI h2, +#encryptionAPI h2, +#mail_general_settings h2 { display: inline-block; } diff --git a/settings/templates/settings/personal/security.php b/settings/templates/settings/personal/security.php index e6087175c7..ab69f36a00 100644 --- a/settings/templates/settings/personal/security.php +++ b/settings/templates/settings/personal/security.php @@ -65,6 +65,10 @@ if($_['passwordChangeSupported']) {

t('Two-Factor Authentication'));?>

+ +

t('Use a second factor besides your password to increase security for your account.'));?>