Skip to content

Commit 5ae6b1b

Browse files
joshbetzkasparsd
authored andcommitted
Fix Jetpack SSO Compatibility (#276)
Props @joshbetz.
1 parent dac65f4 commit 5ae6b1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

class.two-factor-core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public static function show_two_factor_login( $user ) {
307307
wp_die( esc_html__( 'Failed to create a login nonce.', 'two-factor' ) );
308308
}
309309

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

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

0 commit comments

Comments
 (0)