Code

Made re-hashing work again
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 Jul 2007 12:28:48 +0000 (12:28 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 Jul 2007 12:28:48 +0000 (12:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6920 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/generic/class_user.inc

index c74d1dfd8b66417bcc1018918b5d537b3b12cbd2..08556847fb744c36847a3e7f88490b1a1a9bc344 100644 (file)
@@ -1100,7 +1100,7 @@ class user extends plugin
   /* Indicate whether a password change is needed or not */
   function password_change_needed()
   {
-    return ($this->pw_storage != $this->last_pw_storage);
+    return (!preg_match("/".$this->pw_storage."/i", $this->last_pw_storage));
   }