Changeset 6763 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor/providers/class-wporg-two-factor-secondary.php
- Timestamp:
- 02/26/2018 12:45:25 PM (7 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
r6759 r6763 44 44 <p> 45 45 <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] *" />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 47 <?php submit_button( __( 'Authenticate', 'wporg' ) ); ?> 48 48 </p> … … 80 80 81 81 // Add some CSS for this clss. 82 add_action( 'login_head', [ $this, 'add_styles' ]);82 wp_enqueue_style( 'two-factor-login', plugins_url( '/css/login.css', dirname( __FILE__ ) ) ); 83 83 84 84 foreach ( $providers as $class => $path ) { … … 95 95 96 96 return parent::__construct(); 97 }98 99 // Add some specific styles for this class.100 public function add_styles() {101 if ( isset( $_GET['provider'] ) && $_GET['provider'] === __CLASS__ ) {102 echo '<style>103 body.login-action-backup_2fa .backup-methods-wrap {104 display: none;105 }106 body.login-action-backup_2fa input[name="two-factor-backup-resend"] {107 108 }109 </style>';110 }111 97 } 112 98
Note: See TracChangeset
for help on using the changeset viewer.