Plugin - Intercept and abort user creation?

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
User avatar
deepthoughts
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Tue Sep 27, 2005 1:12 pm
Location: The northern part of Sweden (Piteå)

Plugin - Intercept and abort user creation?

Post by deepthoughts » Sat Feb 23, 2008 10:01 am

I'm writing my first plugin and it is an emaildomain blocker. The idea came to me after realizing that you can authenticate with a Google Apps account and it would be cool to have a portal where everyone from a certain domain can login but no one else. (Apparently other people is interested in a similar feature as well http://forum.joomla.org/viewtopic.php?f=452&t=266028)

I'm having one problem though. I've come so far that the plugin checks your email and sees if it's in an array of allowed domains and if not it raises an error. But the user still gets created and is able to login. How do I intercept the user creation? Is this possible?

Post Reply