Make WordPress Core

Changeset 23814


Ignore:
Timestamp:
03/27/2013 02:15:13 PM (12 years ago)
Author:
westi
Message:

Pluggable Auth: When setting new passwords for users trim any leading or trailing space to match what we do when we test passwords.

Fixes #23494

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r23811 r23814  
    15661566    global $wpdb;
    15671567
    1568     $hash = wp_hash_password($password);
     1568    $hash = wp_hash_password( trim( $password ) );
    15691569    $wpdb->update($wpdb->users, array('user_pass' => $hash, 'user_activation_key' => ''), array('ID' => $user_id) );
    15701570
Note: See TracChangeset for help on using the changeset viewer.