Skip to content

Commit

Permalink
Don’t deal with setting the primary
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Sep 19, 2024
1 parent 64c0fce commit faf80cb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions class-two-factor-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -1906,11 +1906,6 @@ public static function enable_provider_for_user( $user_id, $new_provider ) {

$enabled_providers[] = $new_provider;

// Add as primary if none set.
if ( ! self::get_primary_provider_for_user( $user_id ) ) {
update_user_meta( $user_id, self::PROVIDER_USER_META_KEY, $new_provider );
}

return (bool) update_user_meta( $user_id, self::ENABLED_PROVIDERS_USER_META_KEY, $enabled_providers );
}

Expand Down

0 comments on commit faf80cb

Please sign in to comment.