Changeset 9631
- Timestamp:
- 03/20/2015 02:34:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-settings/bp-settings-actions.php
r9628 r9631 162 162 163 163 if ( ( $_POST['pass1'] == $_POST['pass2'] ) && !strpos( " " . $_POST['pass1'], "\\" ) ) { 164 164 165 165 // Password change attempt is successful 166 if ( $_POST['pwd'] != $_POST['pass1'] ){166 if ( ( ! empty( $_POST['pwd'] ) && $_POST['pwd'] != $_POST['pass1'] ) || is_super_admin() ) { 167 167 $update_user->user_pass = $_POST['pass1']; 168 168 $pass_changed = true; 169 169 170 170 // The new password is the same as the current password 171 171 } else {
Note: See TracChangeset
for help on using the changeset viewer.