Skip to content
Corex

LoginProtectionEnforcer

Corex\Config\Security\LoginProtection\LoginProtectionEnforcer · class · Config layer

Wires the login-protection policy into the real WordPress authentication lifecycle: blocks locked-out identities before authentication completes, records failed attempts, and logs supported successful sign-ins. Without this adapter the policy never enforces.

__construct(LoginProtectionService $service, ClientIpResolver $ips, LoginProtectionSettings $settings, ?EventDispatcher $events)

Section titled “__construct(LoginProtectionService $service, ClientIpResolver $ips, LoginProtectionSettings $settings, ?EventDispatcher $events)”

blockLockedOut(mixed $user, string $username, string $password): mixed

Section titled “blockLockedOut(mixed $user, string $username, string $password): mixed”

recordSuccess(string $username, mixed $user): void

Section titled “recordSuccess(string $username, mixed $user): void”