Changeset 65 for trunk/include/pluggable-override.php
- Timestamp:
- Jan 21, 2009, 5:44:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/pluggable-override.php
r23 r65 148 148 // If the hash is still md5... 149 149 if ( strlen($hash) <= 32 ) { 150 if (( $hash == md5($password)) || ($hash == $password)) { 150 if (( $hash == md5($password)) || ($hash == $password)) { // The password taken out of XOOPS is hash value. 151 151 $check = true; 152 152 } else { … … 154 154 } 155 155 156 if ( $check && $user_id ) { 157 // Rehash using new hash. 158 wp_set_password($password, $user_id); 159 $hash = wp_hash_password($password); 160 } 161 156 /* A new hash is not used because it differs from the hash on the XOOPS password. 157 * if ( $check && $user_id ) { 158 * // Rehash using new hash. 159 * wp_set_password($password, $user_id); 160 * $hash = wp_hash_password($password); 161 * } 162 */ 162 163 return apply_filters('check_password', $check, $password, $hash, $user_id); 163 164 }
Note: See TracChangeset
for help on using the changeset viewer.