2016-01-30, 10:22 PM
Hi,
I want to put a custom validation when a user registers.
I saw a lot of hooks, for example member_do_register_start getting information with $mybb->input and populating $errors, but this variable is overwritten a few lines later.
I need to validate username and email, but verify_username(), verify_username_exists() and verify_email() don't have hooks.
Another one is datahandler_user_insert but I can't add/show my error(s).
Ideas?
I want to put a custom validation when a user registers.
I saw a lot of hooks, for example member_do_register_start getting information with $mybb->input and populating $errors, but this variable is overwritten a few lines later.
I need to validate username and email, but verify_username(), verify_username_exists() and verify_email() don't have hooks.
Another one is datahandler_user_insert but I can't add/show my error(s).
Ideas?