It looks like you're new here. If you want to get involved, click one of these buttons!
dave_stewart
newb
public function UserModel_BeforeRegister_Handler($Sender, $Args) {
$User = $Args['User']; // Check this user...
...
$Args['Valid'] = FALSE; // false blocks the registration
}
To answer your specific question, unfortunately you can't override the RegisterApproval method because it is not called through the dispatcher. You could override the Register method which is what you are going to anyway. You do this with the following event handler:
public function EntryController_Register_Override($Sender, $Args) { ... }
Answers
In which classes is the above code supposed to reside?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •My addons: NillaBlog | Vanoogle
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Ta :)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •