WordPress.org

Making WordPress.org

Changeset 6783


Ignore:
Timestamp:
02/27/2018 02:42:55 AM (3 years ago)
Author:
dd32
Message:

2FA: Remove uneeded function from r6782.

See #77.

File:
1 edited

Legend:

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

    r6782 r6783  
    228228
    229229        exit;
    230     }
    231 
    232     /**
    233      * Display the login form.
    234      *
    235      * @since 0.1-dev
    236      *
    237      * @param WP_User $user WP_User object of the logged-in user.
    238      */
    239     public static function show_two_factor_login( $user ) {
    240         if ( ! $user ) {
    241             $user = wp_get_current_user();
    242         }
    243 
    244         $login_nonce = self::create_login_nonce( $user->ID );
    245         if ( ! $login_nonce ) {
    246             wp_die( esc_html__( 'Failed to create a login nonce.', 'two-factor' ) );
    247         }
    248 
    249         $redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : $_SERVER['REQUEST_URI'];
    250 
    251         self::login_html( $user, $login_nonce['key'], $redirect_to );
    252230    }
    253231
Note: See TracChangeset for help on using the changeset viewer.