if (strpos($email, 'xxx.info') > -1 ) {
throw new RegistrationException(elgg_echo('RegistrationException:......'));
}
Thanks Dhrup, but where do I go with the code? I tried to put it into register.php but that did not do anything.
Also would the code only stop e-mail registration with xxx.info? my concept is to stop all e-mail with extension "info"
Thanks for your help
TJ
actions register.php
if (strpos($email, 'info') > -1 ) {
throw new RegistrationException(elgg_echo('RegistrationException:......'));
}
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.