Skip to content
Corex

LoginProtectionService

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

Applies login rate limiting without storing raw credentials or raw IP addresses.

__construct(LoginProtectionPolicy $policy, LoginAttemptStore $store)

Section titled “__construct(LoginProtectionPolicy $policy, LoginAttemptStore $store)”

assess(LoginProtectionContext $context, DateTimeImmutable $now): LoginProtectionDecision

Section titled “assess(LoginProtectionContext $context, DateTimeImmutable $now): LoginProtectionDecision”

recordFailure(LoginProtectionContext $context, DateTimeImmutable $now): LoginProtectionDecision

Section titled “recordFailure(LoginProtectionContext $context, DateTimeImmutable $now): LoginProtectionDecision”

recordSuccess(LoginProtectionContext $context, int $userId, DateTimeImmutable $now): LoginProtectionDecision

Section titled “recordSuccess(LoginProtectionContext $context, int $userId, DateTimeImmutable $now): LoginProtectionDecision”