Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 1 Year, 11 Months, 2 Weeks ago remove confirmation password and email confirmation on form register?
#1
Solved: 1 Year, 11 Months, 2 Weeks ago
How to remove confirmation password and email confirmation on form register?


Attached Files Thumbnail(s)
   
Reply
#2
Solved: 1 Year, 11 Months, 2 Weeks ago
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.
Reply
#3
Solved: 1 Year, 11 Months, 2 Weeks ago
(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.
Reply
#4
Solved: 1 Year, 11 Months, 2 Weeks ago
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?).
Reply
#5
Solved: 1 Year, 11 Months, 2 Weeks ago
(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'),
Reply
#6
Solved: 1 Year, 11 Months, 2 Weeks ago
See him next time asking for help cause support needed for user who entered the wrong data, and for spam bot removing...
Paid support or developement: www.broatcast-consulting.de
All other: blog.broatcast.de

[Image: EbbMWfN.png]

Reply
#7
Solved: 1 Year, 11 Months, 2 Weeks ago
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.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)