rescuepayloadstorage
2 weeks ago
MfaBackupCodes.php
2 weeks ago
MfaBackupCodesInterface.php
2 weeks ago
MfaEndpoint.php
2 weeks ago
MfaEndpointInterface.php
2 weeks ago
MfaManager.php
2 weeks ago
MfaSettings.php
2 weeks ago
MfaSettingsInterface.php
2 weeks ago
MfaValidator.php
2 weeks ago
RescueCode.php
2 weeks ago
MfaEndpointInterface.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | namespace LLAR\Core\Mfa; |
| 4 | |
| 5 | if ( ! defined( 'ABSPATH' ) ) { |
| 6 | exit; |
| 7 | } |
| 8 | |
| 9 | /** |
| 10 | * Interface for MFA rescue endpoint handler. |
| 11 | * Handles rescue link requests: rate limiting, decrypt, verify, disable MFA. |
| 12 | * |
| 13 | * Used for testability: MfaManager can depend on this interface. |
| 14 | */ |
| 15 | interface MfaEndpointInterface { |
| 16 | |
| 17 | /** |
| 18 | * Handle rescue endpoint request. May redirect, wp_die, or exit. |
| 19 | * |
| 20 | * @param string $hash_id Hash ID from URL (llar_rescue query var). |
| 21 | * @return void |
| 22 | */ |
| 23 | public function handle( $hash_id ); |
| 24 | } |
| 25 |