Code

Added rendering for action menu
[gosa.git] / gosa-core / include / password-methods / class_password-methods.inc
index b3144a180931db0490579bec847727b070b19c41..cde47c38ee56f835040f0626c086058172ea29f1 100644 (file)
@@ -38,7 +38,7 @@ class passwordMethod
     if($this->get_hash_name() == ""){
       return("{crypt}N0T$3T4N0W");
     }else{
-      return('{'.$this->get_hash_name().'}').'N0T$3T4N0W';
+      return('{'.$this->get_hash().'}').'N0T$3T4N0W';
     }
   }
 
@@ -92,7 +92,7 @@ class passwordMethod
 
       /* Check if this entry is already locked. */
       if(preg_match("/^[^\}]*+\}!/",$pwd)){
-        return;
+        return(TRUE);
       }     
       
       /* Lock entry */
@@ -129,7 +129,7 @@ class passwordMethod
 
       /* Check if this entry is already locked. */
       if(!preg_match("/^[^\}]*+\}!/",$pwd)){
-        return;
+        return (TRUE);
       }     
       
       /* Lock entry */