Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/24/2016 02:45:08 PM (10 years ago)
Author:
boonebgorges
Message:

Better hash building for activation keys, password reset keys, and filenames.

There is no need to use user-facing info for these hashes.

Ports [10800] to the 2.5 branch.

Props DJPaul, vortfu.

Location:
branches/2.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5

    • Property svn:mergeinfo changed
      /trunk (added)merged: 10800
  • branches/2.5/src/bp-members/classes/class-bp-signup.php

    r10597 r10801  
    737737                        $user_id = username_exists( $signup->user_login );
    738738
    739                         if ( ! empty( $user_id ) && $signup->activation_key == wp_hash( $user_id ) ) {
     739                        if ( ! empty( $user_id ) && $signup->activation_key === bp_get_user_meta( $user_id, 'activation_key', true ) ) {
    740740
    741741                                if ( 2 != self::check_user_status( $user_id ) ) {
Note: See TracChangeset for help on using the changeset viewer.