original_string: public function is_valid_login_domain($email) {
          if (empty($this->get('alloweddomains'))) {
              return true;
          }
  
          $validdomains = explode(',', $this->get('alloweddomains'));
  
          $parts = explode('@', $email, 2);
          $emaildomain = '';
          if (count($parts) > 1) {
              $emaildomain = $parts[1];
          }
  
          return \core\ip_utils::is_domain_in_allowed_list($emaildomain, $validdomains);
      }
code: public function is_valid_login_domain($email) {
          if (empty($this->get('alloweddomains'))) {
              return true;
          }
  
          $validdomains = explode(',', $this->get('alloweddomains'));
  
          $parts = explode('@', $email, 2);
          $emaildomain = '';
          if (count($parts) > 1) {
              $emaildomain = $parts[1];
          }
  
          return \core\ip_utils::is_domain_in_allowed_list($emaildomain, $validdomains);
      }
code_tokens: public function is_valid_login_domain ( $ email ) { if ( empty ( $ this -> get ( 'alloweddomains' ) ) ) { return true ; } $ validdomains = explode ( ',' , $ this -> get ( 'alloweddomains' ) ) ; $ parts = explode ( '@' , $ email , 2 ) ; $ emaildomain = '' ; if ( count ( $ parts ) > 1 ) { $ emaildomain = $ parts [ 1 ] ; } return \ core \ ip_utils :: is_domain_in_allowed_list ( $ emaildomain , $ validdomains ) ; }
docstring: Perform matching against the list of allowed login domains for this issuer.
  
  @param string $email The email to check.
  @return boolean
docstring_tokens: Perform matching against the list of allowed login domains for this issuer .