Skip to:
Content
Pages
Categories
Search
Top
Bottom

Password key input invisible by default – HELP


  • ppp12345
    Participant

    @ppp12345

    Hi,

    I’m clueless why you set the default value of the password visibility input to “visible” in the registration form, instead of the other way around- like the rest of the planet is doing.

    So here goes, how do I set the default password input visibility button to hide the users input of password… e.g. so it behaves like the default WordPress login behavior. Pressing a key, it blinks and gets hidden.

    I appreciate;

    1. An explanation
    2. Help to achieve which shouldn’t needed to be asked for- it is major security issue that should be resolved asap) the above
    3. Why is https://buddydev.com/buddypress-better-registration-part-1-remove-full-name-confirm-password-from-buddypress-registration/ this not working with Nouveau? Can you please explain how to make it work with Nouveau.

    Thank you for a great plugin, and look forward to prompt replay!

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

  • ppp12345
    Participant

    @ppp12345

    This is a Nouveau problem. The account part of the registration form looks nothing like the Legacy/Default. It needs to be addressed asap, passwords should be hidden by default on screens by default- ALWAYS. Please advice


    ppp12345
    Participant

    @ppp12345

    Anyone?


    ppp12345
    Participant

    @ppp12345

    I need the default setting…

    <input type=”text” data-reveal=”1″ name=”signup_password” id=”pass1″ class=”password-entry empty” size=”24″ value=”” data-pw=”” aria-describedby=”pass-strength-result” spellcheck=”false” autocomplete=”off”>

    to be….

    <input type=”password” data-reveal=”1″ name=”signup_password” id=”pass1″ class=”password-entry empty” size=”24″ value=”” data-pw=”” aria-describedby=”pass-strength-result” spellcheck=”false” autocomplete=”off”>

    Unfortunately I can’t identify the default “text” input type coded anywere- https://buddypress.trac.wordpress.org/changeset/12397 … looking in /bp-templates/bp-nouveau/buddypress-functions.php at least… everywere I look I see “password” set.

    Am I the only one facing this issue? :/ What am I missing, ANYONE?


    ppp12345
    Participant

    @ppp12345

    P.S. Or alternatively changing this default…

    <div class=”user-pass1-wrap”>
    <div class=”wp-pwd”>
    <div class=”password-input-wrapper”>
    <input type=”text” data-reveal=”1″ name=”signup_password” id=”pass1″ class=”password-entry empty” size=”24″ value=”” data-pw=”” aria-describedby=”pass-strength-result” spellcheck=”false” autocomplete=”off”>
    <button type=”button” class=”button wp-hide-pw” aria-label=”Hide password”>
    <span class=”dashicons dashicons-hidden” aria-hidden=”true”></span>
    </button>
    </div>
    <div id=”pass-strength-result” aria-live=”polite” style=”display: block;” class=”empty”> </div>
    </div>
    <div class=”pw-weak” style=”display: none;”>
    <label>
    <input type=”checkbox” name=”pw_weak” class=”pw-checkbox”>
    Confirm use of weak password </label>
    </div>
    </div>

    to…

    <div class=”user-pass1-wrap”>
    <div class=”wp-pwd”>
    <div class=”password-input-wrapper”>
    <input type=”password” data-reveal=”1″ name=”signup_password” id=”pass1″ class=”password-entry empty” size=”24″ value=”” data-pw=”” aria-describedby=”pass-strength-result” spellcheck=”false” autocomplete=”off”>
    <button type=”button” class=”button wp-hide-pw” aria-label=”Hide password”>
    <span class=”dashicons dashicons-hidden” aria-hidden=”true”></span>
    </button>
    </div>
    <div id=”pass-strength-result” aria-live=”polite” style=”display: block;” class=”empty”> </div>
    </div>
    <div class=”pw-weak” style=”display: none;”>
    <label>
    <input type=”checkbox” name=”pw_weak” class=”pw-checkbox”>
    Confirm use of weak password </label>
    </div>
    </div>

    Also looked at https://github.com/buddypress/BuddyPress/blob/master/src/bp-templates/bp-nouveau/buddypress/members/single/settings/general.php … and the same goes there, I’m just seeing “password” set as default.

    P.S. I’m using elementor


    ppp12345
    Participant

    @ppp12345

    P.S. Yes, I disabled the default autogenerated password and very happy with that… not interested in going back!


    ppp12345
    Participant

    @ppp12345

    P.S. I’ve checked my bp_nouveau_signup_form() as well, code seems to be set to display Password =

    function bp_nouveau_signup_form( $section = ‘account_details’ ) {
    $fields = bp_nouveau_get_signup_fields( $section );
    if ( ! $fields ) {
    return;
    }

    foreach ( $fields as $name => $attributes ) {
    if ( ‘signup_password’ === $name ) {
    ?>
    <label for=”pass1″><?php esc_html_e( ‘Choose a Password (required)’, ‘buddypress’ ); ?></label>
    <div class=”user-pass1-wrap”>
    <div class=”wp-pwd”>
    <div class=”password-input-wrapper”>
    <input type=”password” data-reveal=”1″ name=”signup_password” id=”pass1″ class=”password-entry” size=”24″ value=”” <?php bp_form_field_attributes( ‘password’, array( ‘data-pw’ => wp_generate_password( 12 ), ‘aria-describedby’ => ‘pass-strength-result’ ) ); ?> />
    <button type=”button” class=”button wp-hide-pw”>
    <span class=”dashicons dashicons-hidden” aria-hidden=”true”></span>
    </button>
    </div>
    <div id=”pass-strength-result” aria-live=”polite”><?php esc_html_e( ‘Strength indicator’, ‘buddypress’ ); ?></div>
    </div>
    <div class=”pw-weak”>
    <label>
    <input type=”checkbox” name=”pw_weak” class=”pw-checkbox” />
    <?php esc_html_e( ‘Confirm use of weak password’, ‘buddypress’ ); ?>
    </label>
    </div>
    </div>

    … so question remains unanswered.


    ppp12345
    Participant

    @ppp12345

    Until someone from BP decides to replay and help me resolve this issue, I’ll strongly advice everyone to think twice before deciding to go with this plugin for their project, or expect your visitors to become suspicious (with all their right) every time they see your registration form.


    ppp12345
    Participant

    @ppp12345

    Anyone?? … Why is this piece of function bp_nouveau_signup_form( $section = ‘account_details’ ) :

    <div class=”user-pass1-wrap”>
    <div class=”wp-pwd”>
    <div class=”password-input-wrapper”>
    <input type=”password” data-reveal=”1″ name=”signup_password” id=”pass1″ class=”password-entry” size=”24″ value=”” <?php bp_form_field_attributes( ‘password’, array( ‘data-pw’ => wp_generate_password( 12 ), ‘aria-describedby’ => ‘pass-strength-result’ ) ); ?> />
    <button type=”button” class=”button wp-hide-pw”>
    <span class=”dashicons dashicons-hidden” aria-hidden=”true”></span>
    </button>
    </div>

    … showing text on screen by default??

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