Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable auto-generation of passwords on the registration form


  • Georgio
    Participant

    @georgio-1

    Hi everyone,
    is it possible to disable the auto-generation of passwords on the signup form?
    This features comes with the latest version of Buddypress and gives me headaches, given the configuration of my site.

    The context:
    The home page is the signup page and there is a login form on the topbar. Both browsers, Firefox and Chrome, fill the signup form with the username of the login form. The problem is with firefox who sees my username together with the auto-generated password and thinks I want to update my credentials. So everytime I login, Firefox asks me if I want to update my password. It is very annoying and I must stop this.

    Is there any snippet to disable this feature?

    Thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)

  • imath
    Moderator

    @imath

    Hi,

    I don’t know how you are injecting the login form, into your home page, but FWIW I’ve tested using wp_login_form() in Firefox and wasn’t able to reproduce your issue.

    Now if you want to bring back the old password control, here’s a way to do it:
    https://gist.github.com/imath/f50a3880159ed8267726684ff0e62398

    Please read the comments at the top of both files code source explaining where to copy/paste them.


    Georgio
    Participant

    @georgio-1

    Thank you @imath for your response.
    Yes, I am injecting wp_login_form() from functions.php as a menu item.

    Meanwhile I found a workaround by renaming the /wp-includes/js/zxcvbn.min.js file. This stops the auto-generation of passwords. I noticed though that if someone uses a weak password to login the the signup form shows a warning: “Confirm use of weak password” and if they don’t confirm, they cannot login.This is shown with Chromium, the linuxian version of Google Chrome.
    I finally think that it depends on how browsers manage passwords.

    Thanks for the gist. I will insert it today. Have a nice day! 🙂


    Georgio
    Participant

    @georgio-1

    Here is a screenshot (using Chromium browser) to illustrate the situation. Screenshot


    Georgio
    Participant

    @georgio-1

    The problem is completely resolved with your solution. Thank you again!


    metalhead505
    Participant

    @metalhead505

    Imath, thank you for this solution. I’m using it.

    But why are we adapting to the password issue this way? Shouldn’t we be trying to hack the new password method with javascript instead?

    Console warning:
    (The bp-nouveau/js/password-verify.js script is deprecated since 5.0.0 and will be deleted in version 6.0.0.)

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar