PluginProbe
Vigilant – 100% Free Security Suite: Firewall, 2FA, Login, Headers, Scanner… / 3.0.0
Vigilant – 100% Free Security Suite: Firewall, 2FA, Login, Headers, Scanner… v3.0.0
3.0.0 2.11.12 2.11.11 2.11.10 2.11.9 2.11.7 2.11.8 2.11.6 2.11.5 2.11.4 2.11.3 2.11.1 2.11.2 2.11.0 2.10.5 2.10.4 2.10.3 2.10.2 2.10.1 2.10.0 2.9.9 2.9.8 2.9.6 2.9.7 2.9.5 All 88 releases
← All changes | includes/class-database.php +8 -4 2.11.103.0.0 View file →
@@ -1708,12 +1708,16 @@
1708 1708
1709 1709 /**
1710 1710 * Whether this account has an enrolment anywhere in the network
1711 1711 *
1712 - * One or two queries, not a search: the local table, and the one the account's
1713 - * vigilante_totp_site marker points at. Used to decide which of the two second
1714 - * factor classes handles the login, and it only runs once a login has already
1715 - * been found to need a second factor.
1712 + * With the account's vigilante_totp_site marker in place this is one or two
1713 + * queries: the local table, and the one the marker points at. Without it,
1714 + * which is every account with no enrolment at all, totp_table_for_user() goes
1715 + * on to search the main site, the account's own sites and, for a super
1716 + * administrator, up to 200 more, and it does so every time, because the
1717 + * marker is only written once an enrolment is found. It runs at login and,
1718 + * since 2.11.10, from the dashboard hooks of the TOTP class too; that is why
1719 + * those ask for the election before reading the row (2.11.11).
1716 1720 *
1717 1721 * @since 2.11.10
1718 1722 *
1719 1723 * @param int $user_id User ID.