Magento 1 – eMail Domains für Benutzeranmeldung sperren

=> aktuell aktiv auf KahlaServer

app/code/core/Mage/Customer/Model/Customer.php

in public function validate()  nach dem eMail check

/* start – mod robo for blocking registration for some email domains */
$disallowed_emaildomains = array(“yandex.ru”, “ya.ru”, “yandex.kz”);
$entered_email = split(‘@’,$this->getEmail());
if (in_array($entered_email[1], $disallowed_emaildomains)) {
$emailerror=”This domain is not allowed to create user accounts, please use another email address or contact customer service”;
if($emailerror){
$errors[] = $emailerror;
}else{
$errors[] = ‘Your email address is not valid to create an account: ‘.$this->getEmail();
}
}
/* end – mod robo for blocking registration for some email domains */

Schreibe einen Kommentar

Menü schließen