• Hello,

    Ever since updating to WordPress 4.3, every time I update a user’s profile information, the user receives a “Notice of Password Change” email. For example, changing the name or customer billing address and clicking Update User (i.e. the submit button) triggers the reset.

    I also run Woocommerce and I need to update my customers’ billing information but am not able to without each one receiving a password reset email.

    I saw this issue reported in one or two other threads but it was in relation to a specific plugin, Digital Access Pass, which I do not use.

    I’ve deactivated literally every single plugin one at a time including WooCommerce, and the issue persists. I’ve also tried switching to the Twenty Fifteen theme and the issue persists. Thus, it seems like a WordPress 4.3 bug.

    Any suggestions?

    Thank you,
    Chris

Viewing 15 replies - 1 through 15 (of 24 total)
  • I’ve got the same problem… using Membership2 Pro from WPMU Dev and every time a new user account is registered the “Notice of Password Change” email is going out right before the “New Membership” confirmation email.

    We’re receiving similar reports from s2Member users and we believe we may have found the problem (related to Google Chrome + WP 4.3): https://github.com/websharks/s2member/issues/705#issuecomment-137010241

    @ccano @sinemac Can either of you confirm what’s described in the above GitHub issue?

    Thread Starter ccano

    (@ccano)

    Hello, thanks for your reply. It appears to be the same problem that the users on the github thread are reporting. But I’ve confirmed just now that the issue persists on Firefox and Chrome.

    I submitted a support request to WPMU Dev and they confirmed the problem… it does not seem to be limited to Chrome.

    Additional searching found this:
    https://wordpress.org/support/topic/notice-of-password-change-upon-login-after-updating-to-wp43?replies=8
    and this:
    https://wordpress.org/support/topic/read-this-first-–-wordpress-43-master-list?replies=4

    … (see “It’s not a bug” post) suggesting it’s an issue with plugins that modify user accounts.

    I’ve used the temporary fix while waiting for WPMU Dev to update Memberhip2

    A TEMPORARY workaround to stop password reset emails is to put this line of code into a plugin on your site and activate it:

    add_filter(‘send_password_change_email’, ‘__return_false’);

    It appears that this issue with password reset emails being sent when simply clicking “Update User” can occur for two possible reasons (both related to the WP 4.3 update):

    If an installed plugin is unnecessarily calling wp_update_user():

    The password change email is triggered any time that the wp_update_user() function is called with a user_pass argument. If the plugin is not actually changing the password, then it needs to not update the user with a password field in the arguments array.

    This is because whether or not you change the password, even to the same password, the database will be changed. WordPress doesn’t know the password, only a hash of it. And the same password can be hashed pretty much an infinite number of ways. So if you send it a user_pass, then it actually is rehashing it and updating the entry in the database.

    So, please stop calling wp_update_user() with a user_pass field over and over again. Then no more emails will be sent. Instead, consider checking if the user password has actually changed before trying to change it. You can use the wp_check_password() function for that. – quoted from this post

    Or, if you have ever used a “save passwords” or “remember passwords” feature in your web browser (issue observed in Firefox and Chrome):

    The WordPress v4.3 update changed the way passwords are reset on the Edit User panel: the “new password” fields are now hidden behind the “Generate Password” button. When you click that button, a text field appears with an auto-generated password. However, in some cases with Chrome and Firefox, the browser will covertly fill in that (now hidden) change password field (pass1). When you click “Update User”, the browser sends a POST with the pass1 and/or pass2 values set to whatever password you had previously saved with your browser. As a result, WordPress thinks you’re changing the users password and then sends the password reset email.

    Here’s how you can test to determine if your browser is sending pass1 or pass2 with values filled in (note this requires PHP debugging to be enabled; if you’re not comfortable with PHP, I don’t recommend making these changes as modifying core files for any reason is not recommended):

    After this line (Line 41 in wp-admin/includes/user.php) in WordPress core, add the following, to help debug:

    header('Content-Type: text/plain');
    print_r($_POST); exit;

    Now attempt to reproduce the issue by updating a user. Observe the debug output and see what pass1 and/or pass2 are set to.

    I have observed that Google Chrome is autofilling my own password at times, and pass1 and pass2 are in fact POSTd without any interaction on my part.

    I’ve opened a WordPress Core Trac ticket here: https://core.trac.wordpress.org/ticket/33699

    We have the same issue: every time an admin updates a user profile role (e.g. select user via checkbox, then “Change role to…”) it sends the user a change of password notification. This should not happen, as it’s not a change of password request. I’m running WordPress 4.3. This never happened before this version.

    Same issue here. I am running WordPress 4.3, Tempera Theme 1.3.2, Buddypress 2.3.3, Membership2 4.0.0.5, and WP-Pro-Quiz 0.3.7.

    I have tried with ProQuiz disabled with same results.

    Thanks!

    Any idea how to work around this or if anything is being done about it? I’m also having this problem, which basically means I can’t make any updates to members profiles without them having to reset their password. If it’s a browser issue filling in the hidden values, then basically every time I update a user’s profile I’m changing their password to MY password?

    I have LastPass, so I don’t need the browser to save any passwords… can I dump some password cache or something to stop this behavior? I tried unchecking the setting in both chrome and firefox, but it still sends me notices so I’m guessing that it’s going by some cache?

    Any help is appreciated.

    @star_echo If you’re using LastPass, make sure there’s no LastPass browser extension or integration that is auto-filling the browser fields. If there’s a way to temporarily disable LastPass browser integration, you might try that.

    I noticed the latest update on the bug report for this (https://core.trac.wordpress.org/ticket/33699) has been reviewed by the lead for the next WordPress release (v4.4), so hopefully we’ll see this fixed soon! πŸ™‚

    Thanks, I did just go ahead and log out of LastPass but that didn’t seem to help. I added exceptions up the wahoo before I logged out to no avail. I made a lot of changes to the settings in chrome re logging in and passwords which didn’t seem to help. The thing that finally did the trick I think was “more tools” and “clear browsing data” to include passwords and autofills from “the beginning of time” LOL That in itself didn’t work. I had to actually close the browser and restart it and then like magic I didn’t get a notice that I’d changed my password. Haven’t tested it with anyone else’s profile yet, but I think this will do the trick. AS A TEMPORARY WORK AROUND! only! I got LastPass for a reason and I want to use it. As I imagine others want to use their browser extensions to save passwords. So I do hope they fix this. It’s a MAJOR problem.

    Anyway, thanks for the help!

    @star_echo:

    If you are using LastPass, please try this:

    Set LastPass to honor the autofill parameter:

    http://cl.ly/image/1H2m0E0A0O3E/Preferences_2015-09-29_15-54-48.jpg

    I tested this and verified it works correctly, preventing LastPass from filling the hidden fields even when I try to manually ‘autofill’.

    Thanks Adam, that worked perfectly. I appreciate the screenshot as that helped a lot finding the particular setting.

    Any updates on this yet?
    I too experience the same issue, in WP 4.3 (and it never occurred before that).

    I can confirm it is NOT just a browser issue. We have custom software that does batch updates of WP users, and IF the email is updated, the password is also reset and the password updated email sent out.

    I double checked our code, and it does appear that wp_update_user() loads, changes, and then saves the complete $userdata array (which includes user_pass). But it seems like WP should be able to know the pwd hasn’t been changed, since it’s exactly the same.

    I’m updating our code to save userdata values individually.

    @dwlorimer According to https://core.trac.wordpress.org/ticket/33699 it looks like a fix will go out soon, hopefully with the next WP update (v4.3.2). I suggest keeping an eye on that Trac ticket.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Notice of password change email every time user profile updated’ is closed to new replies.