I was wondering if there is a way to setup a bann on elgg to bann just by e-mail.
Here is the idea. bann all e-mail that look like xxxx.xxx@xxx.info
how would this work and is there any ideas on this?
Thanks
TJ
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.
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
- siucdude@siucdude
siucdude - 0 likes
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
You must log in to post replies.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:......'));
}