Source: src/Controllers/TwoFactorController.php
Overview
No class-level docblock. Add one at the top of the file.
Extends: App\Controllers\BaseController
Public methods
setup(): void
Show the 2FA setup page with a new TOTP secret. Stores the secret in session until the user confirms with a valid code.
enable(): void
Enable 2FA after the user submits a valid TOTP code confirming they have configured their authenticator app correctly.
disable(): void
Disable 2FA. Requires the user to confirm their password.
verify(): void
Verify a TOTP code during the login flow. Called after primary credentials are validated; the pending user ID is stored in session as pending_2fa_user_id.
Auto-generated from source by bin/sync-class-docs.php on 2026-04-21 09:56 CDT. Re-runs overwrite this thread body.
. __ ____ ___ ____ _ _
/ /_| ___| / _ \___ \(_)___| |__
| '_ \___ \| | | |__) | / __| '_ \
| (_) |__) | |_| / __/| \__ \ | | |
\___/____/ \___/_____|_|___/_| |_|
D2sk - Sysop