Index: ec_useracc/ec_useracc.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ecommerce/contrib/ec_useracc/Attic/ec_useracc.module,v
retrieving revision 1.1.2.7.2.12.2.28
diff -u -p -r1.1.2.7.2.12.2.28 ec_useracc.module
--- ec_useracc/ec_useracc.module	27 Dec 2007 21:54:57 -0000	1.1.2.7.2.12.2.28
+++ ec_useracc/ec_useracc.module	31 Jan 2008 05:18:05 -0000
@@ -582,7 +582,9 @@ function ec_useracc_token_list($type = '
   if ($type == 'all' || $type == 'user') {
     $tokens['user']['mail-confirm-url']            = t('Confirmation URL');
     $tokens['user']['mail-confirm-time-to-expire'] = t('Time to confirmation expiry');
-    $tokens['user']['user-clear-password']          = t('User\'s clear text password');
+    $tokens['user']['user-clear-password']         = t('User\'s clear text password');
+    $tokens['user']['user-new-account-name']       = t('Username for new account just created');
+
   }
 
   return $tokens;
@@ -593,15 +595,16 @@ function ec_useracc_token_list($type = '
  */
 function ec_useracc_token_values($type, $object = null) {
   $values = false;
-
+  
   if ($type == 'user') {
     $values['mail-confirm-url']            = url('ec_useracc/confirm/'.
-      $account['code'], null, null, true);
-    $values['mail-confirm-time-to-expire'] = format_interval($account['confexpiry'] - time());
-    $values['user-clear-password']         = strlen($account['password']) != 32 ?
-      $account['password'] : '';
+      $object->code, null, null, true);
+    $values['mail-confirm-time-to-expire'] = format_interval($object->confexpiry - time());
+    $values['user-clear-password']         = strlen($object->password) != 32 ? $object->password : '';
+    $values['user-new-account-name']       = $object->name;
+    
   }
-
+  
   return $values;
 }
 
