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/common-styles/_bp-mixins.scss

    r12082 r12397  
    533533}
    534534
     535@mixin pwd-strong-colors($color: inherit, $background: null, $border: null) {
     536
     537    @if $background {
     538        $background: $background;
     539    } @else {
     540        $background: $background-strong;
     541    }
     542
     543    background-color: $background;
     544
     545    @if $border {
     546        $border: $border;
     547    } @else {
     548        $border: $border-strong;
     549    }
     550
     551    border-color: $border;
     552
     553    color: $color;
     554}
     555
    535556// BP Tooltips
    536557
Note: See TracChangeset for help on using the changeset viewer.