diff --git a/media/css/seahub.css b/media/css/seahub.css index 2b7ecf3c48..3baa570176 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -2856,8 +2856,31 @@ a.sf-popover-item { } /* two-factor-auth */ +.tfa-panel { + background: #fff; + border-radius: 3px; + box-shadow: 0 0 10px rgba(0,0,0, 0.1); + padding: 30px 25px 40px; + width: 336px; + margin: 5rem auto; +} + +.tfa-panel .hd { + font-size: 1rem; + text-align: center; +} + +.tfa-panel .con { + font-size: .875rem; + color: #666; +} + +.tfa-panel .qr-code-image { + margin: 6px 0 20px; +} + .two-factor-auth-wizard-btns { - margin-top: 8px; + margin-top: 1.25rem; } .two-factor-auth-backup-token-list { @@ -2868,15 +2891,6 @@ a.sf-popover-item { margin-bottom: 15px; } -#id_generator-token, -#id_sms-number, -#id_validation-token { - /* token input */ - width: 260px; - padding: 2px 3px; - border-radius: 2px; -} - /* terms & conditions */ #tc-content { padding-top: 0; diff --git a/seahub/two_factor/templates/two_factor/_wizard_actions.html b/seahub/two_factor/templates/two_factor/_wizard_actions.html index 2f30ae7b8c..e189a8a118 100644 --- a/seahub/two_factor/templates/two_factor/_wizard_actions.html +++ b/seahub/two_factor/templates/two_factor/_wizard_actions.html @@ -1,6 +1,6 @@ {% load i18n %}
-{% trans "Cancel" %} - + +{% trans "Cancel" %}
diff --git a/seahub/two_factor/templates/two_factor/core/backup_tokens.html b/seahub/two_factor/templates/two_factor/core/backup_tokens.html index 8f1fda6ad9..8a15cd76f5 100644 --- a/seahub/two_factor/templates/two_factor/core/backup_tokens.html +++ b/seahub/two_factor/templates/two_factor/core/backup_tokens.html @@ -2,30 +2,30 @@ {% load i18n %} {% block main_content %} -
-

{% trans "Backup Tokens" %}

+
+

{% trans "Backup Tokens" %}

-

{% blocktrans %}Backup tokens can be used when your primary and backup - phone numbers aren't available. The backup tokens below can be used - for login verification. If you've used up all your backup tokens, you - can generate a new set of backup tokens. Only the backup tokens shown - below will be valid.{% endblocktrans %}

+

{% blocktrans %}Backup tokens can be used when your primary and backup + phone numbers aren't available. The backup tokens below can be used + for login verification. If you've used up all your backup tokens, you + can generate a new set of backup tokens. Only the backup tokens shown + below will be valid.{% endblocktrans %}

{% if device.token_set.count %}
    {% for token in device.token_set.all %} -
  • {{ token.token }}
  • +
  • {{ token.token }}
  • {% endfor %}

{% blocktrans %}Print these tokens and keep them somewhere safe.{% endblocktrans %}

- {% else %} + {% else %}

{% trans "You don't have any backup codes yet." %}

- {% endif %} + {% endif %} -
{% csrf_token %}{{ form }} - {% trans "Back" %} - -
-
+
{% csrf_token %}{{ form }} + + {% trans "Back" %} +
+
{% endblock %} diff --git a/seahub/two_factor/templates/two_factor/core/setup.html b/seahub/two_factor/templates/two_factor/core/setup.html index 47d0ae3542..6cf0dca34c 100644 --- a/seahub/two_factor/templates/two_factor/core/setup.html +++ b/seahub/two_factor/templates/two_factor/core/setup.html @@ -2,22 +2,21 @@ {% load i18n %} {% block main_content %} -
-

{% trans "Enable Two-Factor Authentication" %}

+
+

{% trans "Enable Two-Factor Authentication" %}

{% if wizard.steps.current == 'welcome' %}

You are about to take your account security to the next level. Follow the steps in this wizard to enable two-factor authentication.

{% elif wizard.steps.current == 'method' %} -

Please select which authentication method you would - like to use.

+

Please select which authentication method you would like to use.

{% elif wizard.steps.current == 'generator' %}

{% blocktrans %}To start using a token generator, please use your smartphone to scan the QR code below. For example, use Google Authenticator. Then, enter the token generated by the app. {% endblocktrans %}

- QR Code + QR Code {% elif wizard.steps.current == 'sms' %}

Please enter the phone number you wish to receive the text messages on. This number will be validated in the next step. @@ -28,11 +27,9 @@ {% elif wizard.steps.current == 'validation' %} {% if challenge_succeeded %} {% if device.method == 'call' %} -

We are calling your phone right now, please enter the - digits you hear.

+

We are calling your phone right now, please enter the digits you hear.

{% elif device.method == 'sms' %} -

We sent you a text message, please enter the tokens we - sent.

+

We sent you a text message, please enter the tokens we sent.

{% endif %} {% else %}
-

{% trans "Disable Two-Factor Authentication" %}

-
-

{% blocktrans %}You are about to disable two-factor authentication. This - compromises your account security, are you sure?{% endblocktrans %}

-
{% csrf_token %} - - {% trans "Cancel" %} -
-
+
+

{% trans "Disable Two-Factor Authentication" %}

+
+

{% blocktrans %}You are about to disable two-factor authentication. This compromises your account security, are you sure?{% endblocktrans %}

+
{% csrf_token %} + + {% trans "Cancel" %} +
+
{% endblock %}