Changeset 6782 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor/providers/class-wporg-two-factor-secondary.php
- Timestamp:
- 02/27/2018 02:40:12 AM (6 years ago)
- 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 34 34 35 35 if ( $email_enabled && $slack_enabled ) { 36 echo '<p >' . __( 'Enter the verification code sent to your Email, Slack, or a printedbackup code.', 'wporg' ) . '</p>';36 echo '<p class="intro">' . __( 'Enter the verification code sent to your Email, Slack, or a backup code.', 'wporg' ) . '</p>'; 37 37 } elseif ( $email_enabled ) { 38 echo '<p >' . __( 'Enter the verification code sent to your Email, or a printedbackup code.', 'wporg' ) . '</p>';38 echo '<p class="intro">' . __( 'Enter the verification code sent to your Email, or a backup code.', 'wporg' ) . '</p>'; 39 39 } else { 40 echo '<p >' . __( 'Enter a printedbackup code.', 'wporg' ) . '</p>';40 echo '<p class="intro">' . __( 'Enter a backup code.', 'wporg' ) . '</p>'; 41 41 } 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; ?> 43 48 44 49 <p> 45 50 <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 ); ?> 48 53 </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 } ?>55 54 56 55 <script type="text/javascript"> … … 78 77 ]; 79 78 $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__ ) ) );83 79 84 80 foreach ( $providers as $class => $path ) {
Note: See TracChangeset
for help on using the changeset viewer.