Code

Cache results from get_module_departments.
[gosa.git] / include / class_password-methods-md5.inc
index 37adff9386e4af448c6829125ce30cc817c85a7f..ea16ce99c9a933378b57461ddb68a05540af9ee5 100644 (file)
@@ -38,8 +38,14 @@ class passwordMethodMd5 extends passwordMethod
 
        function generate_hash($pwd)
        {
-               return  "{md5}".base64_encode( pack('H*', md5($pwd))));
+               return  "{MD5}".base64_encode( pack('H*', md5($pwd)));
        }
+
+
+  function get_hash_name()
+  {
+    return "md5";
+  }
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: