mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +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,7 +36,24 @@ class LSattr_ldap_password extends LSattr_ldap {
|
|||
* @retval mixed The display value of this attribute
|
||||
*/
|
||||
function getDisplayValue($data) {
|
||||
return '********';
|
||||
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 '********';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue