Skip to content

Commit

Permalink
Fix Jetpack SSO Compatibility (#276)
Browse files Browse the repository at this point in the history
Props @joshbetz.
  • Loading branch information
joshbetz authored and kasparsd committed Apr 12, 2019
1 parent dac65f4 commit 5ae6b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class.two-factor-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public static function show_two_factor_login( $user ) {
wp_die( esc_html__( 'Failed to create a login nonce.', 'two-factor' ) );
}

$redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : $_SERVER['REQUEST_URI'];
$redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : admin_url();

self::login_html( $user, $login_nonce['key'], $redirect_to );
}
Expand Down

0 comments on commit 5ae6b1b

Please sign in to comment.