Making WordPress.org

Changeset 6785


Ignore:
Timestamp:
02/27/2018 02:54:08 AM (7 years ago)
Author:
obenland
Message:

2FA: Move resend button below the form

Fixes a bug where codes wouldn't be submitted correctly and improves flow.

See #77.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor/providers/class-wporg-two-factor-secondary.php

    r6784 r6785  
    4343            echo '<p class="intro">' . __( 'Enter a backup code.', 'wporg' ) . '</p>';
    4444        }
    45 
    46         if ( $email_enabled || $slack_enabled ) : ?>
    47             <p class="two-factor-email-resend intro">
    48                 <button type="submit" class="button-link" name="two-factor-backup-resend"><span class="dashicons-before dashicons-controls-repeat"><?php esc_html_e( 'Resend Code', 'wporg' ); ?></span></button>
    49             </p>
    50         <?php endif; ?>
     45        ?>
    5146
    5247        <p>
     
    6661            }, 200);
    6762        </script>
    68         <?php
     63
     64        <?php if ( $email_enabled || $slack_enabled ) : ?>
     65        <p class="two-factor-email-resend">
     66            <button type="submit" class="button-link" name="two-factor-backup-resend"><span class="dashicons-before dashicons-controls-repeat"><?php esc_html_e( 'Resend Code', 'wporg' ); ?></span></button>
     67        </p>
     68        <?php endif;
    6969    }
    7070
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor/wporg-two-factor.php

    r6783 r6785  
    311311            .login-action-validate_2fa #login {
    312312                margin-bottom: 24px;
     313            }
     314            .wp-core-ui.login .button-primary {
     315                float: none;
     316            }
     317            #login .two-factor-email-resend {
     318                margin-top: 16px;
    313319            }
    314320            .backup-methods-wrap {
Note: See TracChangeset for help on using the changeset viewer.