Code

Starting move
[gosa.git] / include / class_password-methods-md5.inc
index caf714753a401749875bec2d7965fda20c731c84..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: