Index: program/include/main.inc
===================================================================
--- program/include/main.inc	(revision f94e442469deca30b39f3fa08aade83cbd0ede70)
+++ program/include/main.inc	(revision 672dc411f9d26f557dbab0de4056714274a8fe92)
@@ -840,9 +840,9 @@
 {
   static $colcounts = array();
-  
+
   $fname = '_'.$col;
   $attrib['name'] = $fname . ($attrib['array'] ? '[]' : '');
   $attrib['class'] = trim($attrib['class'] . ' ff_' . $col);
-  
+
   if ($type == 'checkbox') {
     $attrib['value'] = '1';
@@ -857,4 +857,7 @@
     $input->add('---', '');
     $input->add(array_values($attrib['options']), array_keys($attrib['options']));
+  }
+  else if ($attrib['type'] == 'password') {
+    $input = new html_passwordfield($attrib);
   }
   else {
