Skip to:
Content

BuddyPress.org

Changeset 14216


Ignore:
Timestamp:
07/29/2026 03:33:56 PM (5 weeks ago)
Author:
dcavins
Message:

Nouveau: Enforce 'strong' password level (14.0 branch).

Resolve a conflict with /wp-admin/js/user-profile.js that allows the user to submit a password satisfying the medium strength test when strong passwords are required.

Fixes #9332.

Props r-a-y, emaralive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/14.0/src/bp-templates/bp-nouveau/js/buddypress-nouveau.js

    r13341 r14216  
    854854                                                                                  .addClass( 'description' )
    855855                                                );
     856
     857                                                // Reinitialize after adding #password-warning.
     858                                                passwordWarningContainer = $( currentForm ).find( '#password-warning' );
    856859                                        }
     860
     861                                        // Ensure we override user-profile.js.
     862                                        setTimeout( () => {
     863                                                $( '#submit' ).prop( 'disabled', true );
     864                                        }, 1 );
    857865
    858866                                        $( passwordWarningContainer ).html( bpPasswordVerify.tooWeakPasswordWarning );
Note: See TracChangeset for help on using the changeset viewer.