original_string: protected function authenticateExternalMember($data, ValidationResult &$result = null, Member $member = null)
      {
          $result = $result ?: ValidationResult::create();
  
          $ssLoginUserName = Environment::getEnv('SS_DEFAULT_ADMIN_USERNAME');
  
          $email = !empty($data['Email']) ? $data['Email'] : null;
  
          if ($email != $ssLoginUserName) {
              return;
          }
  
          // Check for default admin user
          $member = Member::get()->find(
              Member::config()->get('unique_identifier_field'),
              $ssLoginUserName
          );
  
          if (!$member) {
              return;
          }
  
          $member->checkLoginPassword($data['Password'], $result);
          return $member;
      }
code: protected function authenticateExternalMember($data, ValidationResult &$result = null, Member $member = null)
      {
          $result = $result ?: ValidationResult::create();
  
          $ssLoginUserName = Environment::getEnv('SS_DEFAULT_ADMIN_USERNAME');
  
          $email = !empty($data['Email']) ? $data['Email'] : null;
  
          if ($email != $ssLoginUserName) {
              return;
          }
  
          // Check for default admin user
          $member = Member::get()->find(
              Member::config()->get('unique_identifier_field'),
              $ssLoginUserName
          );
  
          if (!$member) {
              return;
          }
  
          $member->checkLoginPassword($data['Password'], $result);
          return $member;
      }
code_tokens: protected function authenticateExternalMember ( $ data , ValidationResult & $ result = null , Member $ member = null ) { $ result = $ result ? : ValidationResult :: create ( ) ; $ ssLoginUserName = Environment :: getEnv ( 'SS_DEFAULT_ADMIN_USERNAME' ) ; $ email = ! empty ( $ data [ 'Email' ] ) ? $ data [ 'Email' ] : null ; if ( $ email != $ ssLoginUserName ) { return ; } // Check for default admin user $ member = Member :: get ( ) -> find ( Member :: config ( ) -> get ( 'unique_identifier_field' ) , $ ssLoginUserName ) ; if ( ! $ member ) { return ; } $ member -> checkLoginPassword ( $ data [ 'Password' ] , $ result ) ; return $ member ; }
docstring: Attempt to find and authenticate external member if possible from the given data
  
  @param array $data Form submitted data
  @param ValidationResult $result
  @param Member $member This third parameter is used in the CMSAuthenticator(s)
  @return Member|Null
docstring_tokens: Attempt to find and authenticate external member if possible from the given data