diff --git src/bp-settings/bp-settings-actions.php src/bp-settings/bp-settings-actions.php
index d56f2c3..73803d0 100644
|
|
Regards, |
160 | 160 | |
161 | 161 | if ( !empty( $_POST['pass1'] ) && !empty( $_POST['pass2'] ) ) { |
162 | 162 | |
163 | | // Password change attempt is successful |
164 | 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 |
169 | 176 | } else { |
… |
… |
Regards, |
235 | 242 | case 'empty' : |
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 |
240 | 249 | break; |