Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/18/2019 06:57:54 AM (4 months 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/common-styles/_bp_registration.scss

    r12082 r12397  
    5252        }
    5353
     54        .wp-pwd button {
     55            vertical-align: middle;
     56        }
     57
     58        #pass1,
     59        #pass1-text,
     60        #pass-strength-result {
     61            width: 10em;
     62        }
     63
     64        #pass1 {
     65            display: inline-block;
     66            margin-bottom: inherit;
     67        }
     68
     69        #pass1-text,
     70        .pw-weak {
     71            display: none;
     72        }
     73
     74        .show-password {
     75
     76            #pass1-text {
     77                display: inline-block;
     78                margin-bottom: inherit;
     79            }
     80
     81            #pass1 {
     82                display: none;
     83            }
     84        }
     85
     86        .description.indicator-hint {
     87
     88            @include font-size(14);
     89        }
     90
     91        #submit:disabled {
     92            color: $light-text;
     93            opacity: 0.4;
     94        }
     95
    5496        .password-entry,
    5597        .password-entry-confirm {
     
    59101
    60102} // close .register-page
     103
     104body.buddypress.register.js {
     105
     106    .user-pass2-wrap {
     107        display: none;
     108    }
     109}
     110
     111body.buddypress.register.no-js {
     112
     113    .wp-hide-pw {
     114        display: none;
     115    }
     116}
    61117
    62118// Flex layout containers for registration sections
     
    102158
    103159            .default-profile {
     160                min-width: 14em;
    104161                flex: 1;
    105162                padding-right: $pad-med;
Note: See TracChangeset for help on using the changeset viewer.