Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/24/2016 02:34:37 PM (8 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/tests/phpunit/testcases/members/functions.php

    r9819 r10800  
    262262
    263263        // Fake an old-style registration
    264         $key = wp_hash( $u_obj->ID );
     264        $key = wp_generate_password( 32, false );
    265265        update_user_meta( $u, 'activation_key', $key );
    266266
     
    296296
    297297        // Fake an old-style registration
    298         $key = wp_hash( $u_obj->ID );
     298        $key = wp_generate_password( 32, false );
    299299        update_user_meta( $u, 'activation_key', $key );
    300300
Note: See TracChangeset for help on using the changeset viewer.