Skip to content

Commit

Permalink
Fire super late since we’re replacing the rest of login flow
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Jan 10, 2025
1 parent 7a3d5ed commit 0de50df
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 @@ -699,7 +699,7 @@ public static function filter_authenticate( $user, $username, $password ) {
}

// Trigger the second-factor flow for valid users.
add_action( 'wp_login', array( __CLASS__, 'wp_login' ), 10, 2 );
add_action( 'wp_login', array( __CLASS__, 'wp_login' ), PHP_INT_MAX, 2 );
}

return $user;
Expand Down

0 comments on commit 0de50df

Please sign in to comment.