Skip to:
Content

bbPress.org

Changeset 5552


Ignore:
Timestamp:
10/16/2014 07:31:04 AM (11 years ago)
Author:
nacin
Message:

bbPress 1.x: Clear user activation keys after password changes.

The code previously cleared activation keys after they were used to reset a password, but not if a user logs in to change the password on their own (say, if they remember it). Also, actually remove the DB row, rather than emptying it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bb-includes/functions.bb-users.php

    r2743 r5552  
    359359    }
    360360
    361     bb_update_usermeta( $user->ID, 'newpwdkey', '' );
    362361    return true;
    363362}
     
    381380
    382381    $wp_users_object->set_password( $password, $user_id );
     382    bb_delete_usermeta( $user_id, 'newpwdkey' );
    383383
    384384    do_action('bb_update_user_password', $user_id);
Note: See TracChangeset for help on using the changeset viewer.