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 %}
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 %} -{% 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 %}{% blocktrans %}Print these tokens and keep them somewhere safe.{% endblocktrans %}
- {% else %} + {% else %}{% trans "You don't have any backup codes yet." %}
- {% endif %} + {% endif %} - -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 %}
-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 %}We've @@ -57,6 +54,8 @@ {% block extra_script %} {% endblock %} diff --git a/seahub/two_factor/templates/two_factor/profile/disable.html b/seahub/two_factor/templates/two_factor/profile/disable.html index 1b5221f71d..0930a58456 100644 --- a/seahub/two_factor/templates/two_factor/profile/disable.html +++ b/seahub/two_factor/templates/two_factor/profile/disable.html @@ -2,15 +2,14 @@ {% load i18n %} {% block main_content %} -
{% blocktrans %}You are about to disable two-factor authentication. This - compromises your account security, are you sure?{% endblocktrans %}
- -{% blocktrans %}You are about to disable two-factor authentication. This compromises your account security, are you sure?{% endblocktrans %}
+ +