Making WordPress.org


Ignore:
Timestamp:
02/27/2018 02:40:12 AM (6 years ago)
Author:
obenland
Message:

2FA Make login markup and styles blend in better

See #77.

File:
1 edited

Legend:

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

    r6763 r6782  
    3434
    3535        if ( $email_enabled && $slack_enabled ) {
    36             echo '<p>' . __( 'Enter the verification code sent to your Email, Slack, or a printed backup code.', 'wporg' ) . '</p>';
     36            echo '<p class="intro">' . __( 'Enter the verification code sent to your Email, Slack, or a backup code.', 'wporg' ) . '</p>';
    3737        } elseif ( $email_enabled ) {
    38             echo '<p>' . __( 'Enter the verification code sent to your Email, or a printed backup code.', 'wporg' ) . '</p>';
     38            echo '<p class="intro">' . __( 'Enter the verification code sent to your Email, or a backup code.', 'wporg' ) . '</p>';
    3939        } else {
    40             echo '<p>' . __( 'Enter a printed backup code.', 'wporg' ) . '</p>';
     40            echo '<p class="intro">' . __( 'Enter a backup code.', 'wporg' ) . '</p>';
    4141        }
    42         ?>
     42
     43        if ( $email_enabled || $slack_enabled ) : ?>
     44            <p class="two-factor-email-resend intro">
     45                <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>
     46            </p>
     47        <?php endif; ?>
    4348
    4449        <p>
    4550            <label for="authcode"><?php esc_html_e( 'Verification Code:', 'wporg' ); ?></label>
    46             <input type="tel" name="two-factor-backup-code" id="authcode" class="input" value="" size="20" pattern="[0-9]{6,20}" title="<?php esc_attr_e( 'Codes are at least 6 decimal digits' ); ?>" />
    47             <?php submit_button( __( 'Authenticate', 'wporg' ) ); ?>
     51            <input type="tel" name="two-factor-backup-code" id="authcode" class="input" value="" size="20" pattern="[0-9]{6,20}" title="<?php esc_attr_e( 'Codes are at least 6 decimal digits', 'wporg' ); ?>" />
     52            <?php submit_button( __( 'Authenticate', 'wporg' ), 'primary', 'submit', false ); ?>
    4853        </p>
    49 
    50         <?php if ( $email_enabled || $slack_enabled ) { ?>
    51             <p class="two-factor-email-resend">
    52                 <input type="submit" class="button" name="two-factor-backup-resend" value="<?php esc_attr_e( 'Resend Code', 'wporg' ); ?>" />
    53             </p>
    54         <?php } ?>
    5554
    5655        <script type="text/javascript">
     
    7877        ];
    7978        $providers = apply_filters( 'wporg_two_factor_secondary_providers', $providers );
    80 
    81         // Add some CSS for this clss.
    82         wp_enqueue_style( 'two-factor-login', plugins_url( '/css/login.css', dirname( __FILE__ ) ) );
    8379
    8480        foreach ( $providers as $class => $path ) {
Note: See TracChangeset for help on using the changeset viewer.