Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/18/2019 06:57:54 AM (5 years ago)
Author:
imath
Message:

BP Nouveau: use the same control than WP to set the user password

On the BuddyPress registration page and on the general settings user’s page, BP Nouveau is now using the same control WordPress is using to let users choose their password. By default it generates a strong password to make the user aware of the importance of its robustness. The user can still edit it and if the password is too weak, the submit button is disabled until the user activates the checkbox to force the use of a weak password.

Developers, please note the src/bp-templates/bp-nouveau/js/password-verify.js is now deprecated and will be deleted in version 6.0.0. If you were using the bp-nouveau-password-verify script handle as a dependency of your script(s), please stop doing so before the 6.0.0 release.

Fixes #8092

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/functions.php

    r12156 r12397  
    11621162                'class'          => '',
    11631163            ),
    1164             'signup_password' => array(
    1165                 'label'          => __( 'Choose a Password', 'buddypress' ),
    1166                 'required'       => true,
    1167                 'value'          => '',
    1168                 'attribute_type' => 'password',
    1169                 'type'           => 'password',
    1170                 'class'          => 'password-entry',
    1171             ),
    1172             'signup_password_confirm' => array(
    1173                 'label'          => __( 'Confirm Password', 'buddypress' ),
    1174                 'required'       => true,
    1175                 'value'          => '',
    1176                 'attribute_type' => 'password',
    1177                 'type'           => 'password',
    1178                 'class'          => 'password-entry-confirm',
    1179             ),
     1164            'signup_password' => array(),
     1165            'signup_password_confirm' => array(),
    11801166        ),
    11811167        'blog_details' => array(
     
    12571243            'attributes' => array(
    12581244                'name'  => 'signup_submit',
    1259                 'id'    => 'signup_submit',
     1245                'id'    => 'submit',
    12601246                'value' => __( 'Complete Sign Up', 'buddypress' ),
    12611247            ),
Note: See TracChangeset for help on using the changeset viewer.