• wp-newbee

    (@wp-newbee)


    Hello,
    Thank you so much for the wonderful plugin.
    I am using this plugin for a while and works great in every accepts.
    I added some inputs in user profile on admin area using below codes.These info display on meet the team page.
    //////////////////////add inputs in user profile area///////////
    function staff_info($profile_fields) {
    // Add new fields
    $profile_fields[‘department’] = ‘Department Name’;
    $profile_fields[‘extension’] = ‘Extension Number’;

    return $profile_fields;
    }
    add_filter(‘user_contactmethods’, ‘staff_info’);
    //////////////////////////////END/////////////////////////////////////

    The information for extension is being added manually. The problem is that when I add that information, the user will receive an email like below:
    Hi username display here,

    This notice confirms that your password was changed on site name here.

    If you did not change your password, please contact the Site Administrator at admin@sonso.com

    This email has been sent to useremail@company.com
    Regards,
    All at oursitename here
    http://sitname.com here

    Our site is private, so I cannot really provide link or email info here that I just added other values.
    Our users cannot set their credentials, ADI pulls those info automatically.
    Why when I add extension user receive this email? Is there a setting that can be change for Admin to receive this email or not receive it at all?
    I appreciate your help in advance.

    Best,
    Azita

    https://wordpress.org/plugins/active-directory-integration/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wp-newbee

    (@wp-newbee)

    Hi,
    On ad-ad-integration.php I see this
    /* Since WP 4.3 we have to disable email on password and email change */
    add_filter(‘send_password_change_email’, ‘__return_false’);
    add_filter(‘send_email_change_email’, ‘__return_false’);

    I am still using WP 4.2.2
    so, please clearly that if I need to wait for WP update to solve this problem.
    Thank you

    Thread Starter wp-newbee

    (@wp-newbee)

    Oops, sorry, I am using WP 4.4.2.
    I also checked the code in pluggable.php
    if ( !function_exists(‘wp_password_change_notification’) ) :
    /**
    * Notify the blog admin of a user changing password, normally via email.
    *
    * @since 2.7.0
    *
    * @param WP_User $user User object.
    */
    function wp_password_change_notification( $user ) {
    // send a copy of password change notification to the admin
    // but check to see if it’s the admin whose password we’re changing, and skip this
    if ( 0 !== strcasecmp( $user->user_email, get_option( ‘admin_email’ ) ) ) {
    $message = sprintf(__(‘Password Lost and Changed for user: %s’), $user->user_login) . “\r\n”;
    // The blogname option is escaped with esc_html on the way into the database in sanitize_option
    // we want to reverse this for the plain text arena of emails.
    $blogname = wp_specialchars_decode(get_option(‘blogname’), ENT_QUOTES);
    wp_mail(get_option(‘admin_email’), sprintf(__(‘[%s] Password Lost/Changed’), $blogname), $message);
    }
    }
    endif;
    the email user is receiving has nothing to do with this.
    Sorry, for multiple post, I am just trying to figure where can stop user receiving the password changed email.
    Thank you.

    Best,
    Azita

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Users receive Email notification – password changed’ is closed to new replies.