Plugin - Intercept and abort user creation?
Posted: 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?
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?