in osticket version 1.10, i wish to apply a validation rule on email input field so that users with email id only from specific domain can open new ticket or apply for registration i.e. email address always should look like id@specificdomain.com . however i tried to edit the is_email() function in includes/class.validator.php as bellow
static function is_email($email, $list=false, $verify=false){
$domains = array('specificdomain.com');
$pattern = "/^[a-z0-9._%+-]+@([a-z0-9.-]+.)*(" . implode('|', $domains) . ")$/i";
if (!preg_match($pattern, $email)) {
return false;
}
}
But no use. can any body help me in this regard.