Changeset 9628
- Timestamp:
- 03/20/2015 12:37:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-settings/bp-settings-actions.php
r9355 r9628 161 161 if ( !empty( $_POST['pass1'] ) && !empty( $_POST['pass2'] ) ) { 162 162 163 // Password change attempt is successful164 163 if ( ( $_POST['pass1'] == $_POST['pass2'] ) && !strpos( " " . $_POST['pass1'], "\\" ) ) { 165 $update_user->user_pass = $_POST['pass1']; 166 $pass_changed = true; 164 165 // Password change attempt is successful 166 if ( $_POST['pwd'] != $_POST['pass1'] ) { 167 $update_user->user_pass = $_POST['pass1']; 168 $pass_changed = true; 169 170 // The new password is the same as the current password 171 } else { 172 $pass_error = 'same'; 173 } 167 174 168 175 // Password change attempt was unsuccessful … … 236 243 $feedback['pass_empty'] = __( 'One of the password fields was empty.', 'buddypress' ); 237 244 break; 245 case 'same' : 246 $feedback['pass_same'] = __( 'The new password must be different from the current password.', 'buddypress' ); 238 247 case false : 239 248 // No change
Note: See TracChangeset
for help on using the changeset viewer.