Parcourir la source

Could not create a user

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@598 a333f486-631f-4898-b8df-5754b55c2be0
romainq il y a 15 ans
Parent
commit
4da85ffeac

+ 1 - 1
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

+ 12 - 0
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 '******';
+		}
+	}
 }
 
 /**