class RecordFailedLogins implements MiddlewareInterface

Counts a failed login for the LoginThrottler.

A failure is counted here rather than in CreateTokenController, so it's counted whichever controller handles the route: extensions such as ianm/twofactor replace it with their own. Only wrong credentials count: other rejections, like a missing CAPTCHA answer or a second factor still to be given, come from someone who may know the password.

Methods

__construct( LoginThrottler $throttler)

No description

ResponseInterface
process( ServerRequestInterface $request, RequestHandlerInterface $handler)

No description

Details

__construct( LoginThrottler $throttler)

Parameters

LoginThrottler $throttler

ResponseInterface process( ServerRequestInterface $request, RequestHandlerInterface $handler)

Parameters

ServerRequestInterface $request
RequestHandlerInterface $handler

Return Value

ResponseInterface