Skip to:
Content

BuddyPress.org

Changeset 9631


Ignore:
Timestamp:
03/20/2015 02:34:07 PM (12 years ago)
Author:
imath
Message:

Settings component: skip the check between new and current password for the super administrator

Fixes #6111

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-settings/bp-settings-actions.php

    r9628 r9631  
    162162
    163163                        if ( ( $_POST['pass1'] == $_POST['pass2'] ) && !strpos( " " . $_POST['pass1'], "\\" ) ) {
    164                                
     164
    165165                                // Password change attempt is successful
    166                                 if ( $_POST['pwd'] != $_POST['pass1'] ) {
     166                                if ( ( ! empty( $_POST['pwd'] ) && $_POST['pwd'] != $_POST['pass1'] ) || is_super_admin() ) {
    167167                                        $update_user->user_pass = $_POST['pass1'];
    168168                                        $pass_changed = true;
    169                                        
     169
    170170                                // The new password is the same as the current password
    171171                                } else {
Note: See TracChangeset for help on using the changeset viewer.