user_pass) ) { // If using new phpass password, rehash. if ( strlen($user->user_pass) > 32 ) { $hash = wp_hash_password($pass); $bbdb->query("UPDATE $bbdb->users SET user_pass = '$hash' WHERE ID = '$user->ID'"); global $bb_cache; $bb_cache->flush_one( 'user', $user->ID ); $user = bb_get_user( $user->ID ); } return $user; } } else { if ( md5($user->user_pass) == $pass ) { return $user; } } return false; } } if ( !function_exists( 'wp_hash_password' ) ) { function wp_hash_password($password) { return md5($password); } } ?>