Making WordPress.org


Ignore:
Timestamp:
02/27/2018 02:54:08 AM (9 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.

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

    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
Note: See TracChangeset for help on using the changeset viewer.