diff --git a/addons/userrights/userrightsprofile.class.inc.php b/addons/userrights/userrightsprofile.class.inc.php index 458528177f..42b23399c0 100644 --- a/addons/userrights/userrightsprofile.class.inc.php +++ b/addons/userrights/userrightsprofile.class.inc.php @@ -83,7 +83,7 @@ class URP_Users extends UserRightsBaseClass MetaModel::Init_AddAttribute(new AttributeLinkedSetIndirect("profile_list", array("linked_class"=>"URP_UserProfile", "ext_key_to_me"=>"userid", "ext_key_to_remote"=>"profileid", "allowed_values"=>null, "count_min"=>1, "count_max"=>0, "depends_on"=>array()))); // Display lists - MetaModel::Init_SetZListItems('details', array('userid', 'first_name', 'email', 'login', 'language', 'profile_list')); // Attributes to be displayed for the complete details + MetaModel::Init_SetZListItems('details', array('userid', 'first_name', 'email', 'login', 'password', 'language', 'profile_list')); // Attributes to be displayed for the complete details MetaModel::Init_SetZListItems('list', array('first_name', 'last_name', 'login')); // Attributes to be displayed for a list // Search criteria MetaModel::Init_SetZListItems('standard_search', array('login', 'userid')); // Criteria of the std search form diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index c7fc138a7b..85789209f6 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -781,6 +781,18 @@ class AttributePassword extends AttributeString // not allowed to search on passwords! return array(); } + + public function GetAsHTML($sValue) + { + if (strlen($sValue) == 0) + { + return ''; + } + else + { + return '******'; + } + } } /**