| @@ -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. |