Index: drupalvb.admin-pages.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drupalvb/drupalvb.admin-pages.inc,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 drupalvb.admin-pages.inc
--- drupalvb.admin-pages.inc	1 May 2008 20:47:36 -0000	1.1.2.5
+++ drupalvb.admin-pages.inc	16 Jul 2008 01:22:01 -0000
@@ -20,6 +20,15 @@ function drupalvb_settings_integration()
   }
 
   $form = array();
+
+  $form['drupalvb_license'] = array(
+    '#type' => 'textfield',
+    '#title' => t('vBulletin license number'),
+    '#default_value' => variable_get('drupalvb_license', ''),
+    '#size' => 20,
+    '#description' => t('Enter your vBulletin license number, which can be found at the top of any PHP file of vBulletin. This is required to generate proper session id hashes for cookies. Please note that this is not your customer number.'),
+  );
+
   $form['drupalvb_dual_login'] = array(
     '#type' => 'checkbox',
     '#title' => t('Users login to vBulletin forum when they log into Drupal.'),
Index: drupalvb.inc.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drupalvb/drupalvb.inc.php,v
retrieving revision 1.9.4.16
diff -u -p -r1.9.4.16 drupalvb.inc.php
--- drupalvb.inc.php	16 Jul 2008 01:06:53 -0000	1.9.4.16
+++ drupalvb.inc.php	16 Jul 2008 01:22:01 -0000
@@ -46,7 +46,7 @@ function drupalvb_set_login_cookies($use
   setcookie($cookie_prefix .'lastvisit', $now, $expire, $cookie_path, $cookie_domain);
   setcookie($cookie_prefix .'lastactivity', $now, $expire, $cookie_path, $cookie_domain);
   setcookie($cookie_prefix .'userid', $vbuser['userid'], $expire, $cookie_path, $cookie_domain);
-  setcookie($cookie_prefix .'password', md5(md5($vbuser['password']) . $vbuser['salt']), $expire, $cookie_path, $cookie_domain);
+  setcookie($cookie_prefix .'password', md5($vbuser['password'] . variable_get('drupalvb_license', '')), $expire, $cookie_path, $cookie_domain);
   return TRUE;
 }
 
