Skip to content

Commit

Permalink
We have the user context so pass it along
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Feb 14, 2025
1 parent d2c9ecc commit 1aa2bfc
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 @@ -636,7 +636,7 @@ public static function get_primary_provider_for_user( $user = null ) {
return null;
}

$providers = self::get_supported_providers_for_user();
$providers = self::get_supported_providers_for_user( $user );
$available_providers = self::get_available_providers_for_user( $user );

// If there's only one available provider, force that to be the primary.
Expand Down

0 comments on commit 1aa2bfc

Please sign in to comment.