diff --git a/gosa-core/include/password-methods/class_password-methods.inc b/gosa-core/include/password-methods/class_password-methods.inc
index b3144a180931db0490579bec847727b070b19c41..cde47c38ee56f835040f0626c086058172ea29f1 100644 (file)
if($this->get_hash_name() == ""){
return("{crypt}N0T$3T4N0W");
}else{
- return('{'.$this->get_hash_name().'}').'N0T$3T4N0W';
+ return('{'.$this->get_hash().'}').'N0T$3T4N0W';
}
}
/* Check if this entry is already locked. */
if(preg_match("/^[^\}]*+\}!/",$pwd)){
- return;
+ return(TRUE);
}
/* Lock entry */
/* Check if this entry is already locked. */
if(!preg_match("/^[^\}]*+\}!/",$pwd)){
- return;
+ return (TRUE);
}
/* Lock entry */