MyBB Community Forums

Full Version: remove confirmation password and email confirmation on form register?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to remove confirmation password and email confirmation on form register?
Hello,

Why would you want to remove them? They help to make sure users enter the right info well registering and it also stops spam bots from registering. Well it doesn't help much but it does something.

The Email confirm can be removed.
The Password confirm should be kept though.
(08-09-2017, 02:02 PM)Brian. Wrote: [ -> ]Hello,

Why would you want to remove them? They help to make sure users enter the right info well registering and it also stops spam bots from registering. Well it doesn't help much but it does something.

The Email confirm can be removed.
The Password confirm should be kept though.

How to remove it? I want to make it easier for users to register, although this will reduce the security on my website.
In the member_register template, remove the 'email2' validator field and remove the 'match_field' option from the email validator field.

<!--
    regValidator = new FormValidator('registration_form');
     regValidator.register('username', 'notEmpty', {failure_message:'{$lang->js_validator_no_username}'});
     regValidator.register('email', 'regexp', {regexp:'^([a-zA-Z0-9_\\.\\+\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$', failure_message:'{$lang->js_validator_invalid_email}'});
 {$validator_extra}
     regValidator.register('username', 'ajax', {url:'xmlhttp.php?action=username_availability', loading_message:'{$lang->js_validator_checking_username}'}); // needs to be last
 // -->
Then unfortunately you have a core edit; member.php line 700 (ish). You need to do the same thing and remove the match_field options and the 'password2' validator field.

Then you're just after a plugin that populates the values on register (hooking into member_do_register_start?).
(08-09-2017, 02:21 PM)Brian. Wrote: [ -> ]In the member_register template, remove the 'email2' validator field and remove the 'match_field' option from the email validator field.

<!--
    regValidator = new FormValidator('registration_form');
     regValidator.register('username', 'notEmpty', {failure_message:'{$lang->js_validator_no_username}'});
     regValidator.register('email', 'regexp', {regexp:'^([a-zA-Z0-9_\\.\\+\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$', failure_message:'{$lang->js_validator_invalid_email}'});
 {$validator_extra}
     regValidator.register('username', 'ajax', {url:'xmlhttp.php?action=username_availability', loading_message:'{$lang->js_validator_checking_username}'}); // needs to be last
 // -->
Then unfortunately you have a core edit; member.php line 700 (ish). You need to do the same thing and remove the match_field options and the 'password2' validator field.

Then you're just after a plugin that populates the values on register (hooking into member_do_register_start?).

not work

Its work In member.php remove :

"password2" => $mybb->get_input('password'),
and
"email2" => $mybb->get_input('email'),
See him next time asking for help cause support needed for user who entered the wrong data, and for spam bot removing...
I don't think that this two inputs help preventing spam bots. Because most of them are programmed to recognize the forum software that is used from the website and then they know how to move (in case of MyBB: the member register agreement, inputs of confirmation, etc).

Setting a reCAPTCHA and a Hidden Captcha is the right way to prevent spambots.