MyBB Community Forums

Full Version: Modifying the Registration Validator
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've been playing around with the registration page on MyBB 1.8, and the validator seems to have changed. I have managed to remove the majority of the fields however am having trouble removing the Password Comfirmation and Email Confirmation fields. When I try and register this is what I get:
  • The password you entered as confirmation does not match the original one. Please confirm your password correctly.
  • The email address you entered as confirmation does not match the original one. Please confirm your email address correctly
Is it possible to remove these fields from the validator?
Many thanks.
Well, that validator code is in the member_register template. Look for equalTo and remove them.
This worked for me in 1.8:

In member.php, find this:
"email2" => $mybb->get_input('email2'),

and replace with this:
"email2" => $mybb->get_input('email'),

This manipulation will disable the"email address does not match" error message.