CluPilotCloud/app/Http/Middleware
nexxo 27292237c3 Move operator two-factor enrolment off admin.settings onto its own page
RequireOperatorTwoFactor exempted the whole of admin.settings while
compulsory two-factor was on, on the theory that it was "the page
where two-factor is set up". That component also carries staff
management, site visibility, network restrictions, account changes,
and the two-factor policy switch itself, so an unenrolled operator got
unrestricted access to all of that, not just enrolment.

Enrolment (secret, QR, confirm, recovery codes, regenerate, disable)
moves to its own route and component, admin.two-factor-setup /
Admin\TwoFactorSetup, reachable by every operator regardless of
capability. That is now the only page the middleware exempts besides
logout, and its redirect points there instead. admin.settings goes
back behind the policy like every other console page; only the policy
switch itself stays there, since only someone who already satisfies
it should be the one changing it.
2026-07-28 15:11:20 +02:00
..
EnsureAdmin.php Move the console's identity out of the customer table 2026-07-28 10:31:43 +02:00
EnsureCustomerActive.php Stop a suspended customer's sign-out from killing a shared operator session 2026-07-28 15:02:00 +02:00
PublicSiteGate.php Stop a disabled operator from bypassing the hidden-site gate 2026-07-28 14:42:29 +02:00
RequireOperatorTwoFactor.php Move operator two-factor enrolment off admin.settings onto its own page 2026-07-28 15:11:20 +02:00
RestrictAdminHost.php Authorize the console's live feed on the operator guard, not the default 2026-07-28 13:31:50 +02:00
RestrictConsoleNetwork.php Give the three console guards one answer to "is this the console?" 2026-07-27 04:52:21 +02:00