Skip to content

Commit

Permalink
Enable the "please enable 2FA" login nag for plugin + theme authors. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dd32 authored Sep 5, 2024
1 parent 625cf3e commit deedfc9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions wporg-two-factor.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,19 +273,17 @@ function user_should_2fa( $user ) : bool {
return true;
}

/*
// If a user ... they should have 2FA enabled.
if (
// Is (or was) a plugin committer
$user->has_plugins ||
// Has (or had) a live theme
$user->has_themes ||
$user->has_themes /* ||
// Has (or had) an elevated role on a site (WordPress.org, BuddyPress.org, bbPress.org, WordCamp.org)
$user->has_elevated_role
$user->has_elevated_role */
) {
return true;
}
*/

return false;
}
Expand Down

0 comments on commit deedfc9

Please sign in to comment.