mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSattr_ldap_password : Fixed getDisplayValue() method
This commit is contained in:
parent
26e1886179
commit
53679139cf
1 changed files with 18 additions and 1 deletions
|
@ -36,8 +36,25 @@ class LSattr_ldap_password extends LSattr_ldap {
|
|||
* @retval mixed The display value of this attribute
|
||||
*/
|
||||
function getDisplayValue($data) {
|
||||
if ($this -> config['ldap_options']['displayClearValue']) {
|
||||
if (is_array($data)) {
|
||||
$ret=array();
|
||||
foreach($data as $p) {
|
||||
if ($p==$this -> config['ldap_options']['wildcardPassword'] || $p==$this -> config['ldap_options']['encodedWildcardPassword']) {
|
||||
continue;
|
||||
}
|
||||
$ret[]=$p;
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
else {
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
else {
|
||||
return '********';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the value of this attribute to be stocked
|
||||
|
|
Loading…
Reference in a new issue