Can I make a Drupal site that requires users to register using a particular email domain?

Thanks.

Comments

gpk’s picture

You would need to implement a tiny custom module that added a validate handler to the registration form using hook_form_alter(). If the email did not meet the requirements it would form_set_error() with a suitable message and the form would be displayed again along with the message.

gpk
----
www.alexoria.co.uk

Stomper’s picture

Interesting. Is this "tiny custom module" available? Just curious, using such a module, would it allow me to restrict registrations to say .edu domains?