public function authenticationFailed($data)
    {
        // LDAP authentication uses a "Login" POST field instead of Email.
        $login = isset($data['Login'])
            ? $data['Login']
            : (isset($data[Email::class]) ? $data[Email::class] : '');

        if (empty($login)) {
            return $this->getAuditLogger()->warning(
                'Could not determine username/email of failed authentication. '.
                'This could be due to login form not using Email or Login field for POST data.'
            );
        }

        $this->getAuditLogger()->info(sprintf('Failed login attempt using email "%s"', $login));
    }
public function authenticationFailed($data)
    {
        // LDAP authentication uses a "Login" POST field instead of Email.
        $login = isset($data['Login'])
            ? $data['Login']
            : (isset($data[Email::class]) ? $data[Email::class] : '');

        if (empty($login)) {
            return $this->getAuditLogger()->warning(
                'Could not determine username/email of failed authentication. '.
                'This could be due to login form not using Email or Login field for POST data.'
            );
        }

        $this->getAuditLogger()->info(sprintf('Failed login attempt using email "%s"', $login));
    }
public function authenticationFailed ( $ data ) { // LDAP authentication uses a "Login" POST field instead of Email. $ login = isset ( $ data [ 'Login' ] ) ? $ data [ 'Login' ] : ( isset ( $ data [ Email :: class ] ) ? $ data [ Email :: class ] : '' ) ; if ( empty ( $ login ) ) { return $ this -> getAuditLogger ( ) -> warning ( 'Could not determine username/email of failed authentication. ' . 'This could be due to login form not using Email or Login field for POST data.' ) ; } $ this -> getAuditLogger ( ) -> info ( sprintf ( 'Failed login attempt using email "%s"' , $ login ) ) ; }
Log failed login attempts.
Log failed login attempts .