original_string: 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));
      }
code: 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));
      }
code_tokens: 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 ) ) ; }
docstring: Log failed login attempts.
docstring_tokens: Log failed login attempts .