Hi,
Is there a plugin where i can limit the validation time of users to 24hours after which the validation should get failed & the validation data should also be deleted.
I want registration email of user to be of certain domain only registration from other domain should be rejected. say only from gmail,yahoo & hotmail alone rest of the domain registration should be rejected.
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.
You can setup a cron job that will delete all users that are not validated within 24 hours.
For domain throttling, just register a hook for 'action', 'register' and deny if email is in the wrong domain.
// Set early priority, so this is triggered before uservalidationbyemail kicks in elgg_register_plugin_hook_handler('register', 'user', function($hook, $type, $return, $params) { if ($return === false) { // something else prevented registration return; } $user = elgg_extract('user', $params); if (!$user) { return; } $email = $user->email; list($prefix, $domain) = explode('@', $email, 2); $blacklisted_domains = [ 'yahoo.com', ]; if (in_array($domain, $blacklisted_domains)) { register_error("Emails from $domain domain are not allowed to register"); return false; } }, 100);In the future, do not use pages to ask question. Go to a respective group and start a discussion. One question - one discussion.
Thank you ismail for your reply .. Oh sorry my mistake i thought it is a discussion i am opening bad eye ..
Take a look at https://elgg.org/plugins/1422171 regarding restrictions on allowed email domains.
The hook used in Daniel's link is more suitable for email validation, but the approach is the same.