Changeset 33019 for trunk/src/wp-login.php
- Timestamp:
- 07/01/2015 06:32:07 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-login.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-login.php
r32672 r33019 364 364 $wp_hasher = new PasswordHash( 8, true ); 365 365 } 366 $hashed = $wp_hasher->HashPassword( $key );366 $hashed = time() . ':' . $wp_hasher->HashPassword( $key ); 367 367 $wpdb->update( $wpdb->users, array( 'user_activation_key' => $hashed ), array( 'user_login' => $user_login ) ); 368 368 … … 529 529 530 530 if ( isset( $_GET['error'] ) ) { 531 if ( 'invalidkey' == $_GET['error'] ) 532 $errors->add( 'invalidkey', __( 'Sorry, that key does not appear to be valid.' ) ); 533 elseif ( 'expiredkey' == $_GET['error'] ) 534 $errors->add( 'expiredkey', __( 'Sorry, that key has expired. Please try again.' ) ); 531 if ( 'invalidkey' == $_GET['error'] ) { 532 $errors->add( 'invalidkey', __( 'Your password reset link appears to be invalid. Please request a new lnk below.' ) ); 533 } elseif ( 'expiredkey' == $_GET['error'] ) { 534 $errors->add( 'expiredkey', __( 'Your password reset link has expired. Please request a new link below.' ) ); 535 } 535 536 } 536 537
Note: See TracChangeset
for help on using the changeset viewer.