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);
    }
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);
    }
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 ) ; }
Perform matching against the list of allowed login domains for this issuer.

@param string $email The email to check.
@return boolean
Perform matching against the list of allowed login domains for this issuer .