Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/24/2016 02:34:37 PM (9 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.

Props DJPaul, vortfu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/classes/class-bp-signup.php

    r10711 r10800  
    747747            $user_id = username_exists( $signup->user_login );
    748748
    749             if ( ! empty( $user_id ) && $signup->activation_key == wp_hash( $user_id ) ) {
     749            if ( ! empty( $user_id ) && $signup->activation_key === bp_get_user_meta( $user_id, 'activation_key', true ) ) {
    750750
    751751                if ( 2 != self::check_user_status( $user_id ) ) {
Note: See TracChangeset for help on using the changeset viewer.