Newscoop\NewscoopBundle\EventListener\CaptchaUsernamePasswordFormAuthenticationListener::attemptAuthentication PHP 메소드

attemptAuthentication() 보호된 메소드

protected attemptAuthentication ( Request $request )
$request Symfony\Component\HttpFoundation\Request
    protected function attemptAuthentication(Request $request)
    {
        if ($request->request->has('captcha_code', $request->query->has('captcha_code')) && \LoginAttempts::MaxLoginAttemptsExceeded()) {
            if (false) {
                throw new AuthenticationException($translator->trans("CAPTCHA code is not valid.  Please try again.", array(), 'home'));
            }
        }
        return parent::attemptAuthentication($request);
    }
CaptchaUsernamePasswordFormAuthenticationListener