fix for the prefs: we need to show the default or forced pw, otherwise we are never able to reset it

This commit is contained in:
Ralf Becker 2006-03-21 16:03:52 +00:00
parent 84b36865e1
commit dc38f4afd8

View File

@ -343,7 +343,9 @@
{ {
return True; return True;
} }
$this->create_input_box($label_name,$preference_name.'][pw',$help,'',$size,$max_size,'password',$run_lang); $this->create_input_box($label_name,$preference_name.
($GLOBALS['type'] != 'user' ? '' : '][pw'), // we need to show the default or forced pw, otherwise we are never able to reset it
$help,'',$size,$max_size,'password',$run_lang);
} }
function create_input_box($label,$name,$help='',$default='',$size='',$max_size='',$type='',$run_lang=True) function create_input_box($label,$name,$help='',$default='',$size='',$max_size='',$type='',$run_lang=True)