Code

Added is_harmless
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Apr 2010 12:39:09 +0000 (12:39 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Apr 2010 12:39:09 +0000 (12:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17841 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/password-methods/class_password-methods.inc

index e1c348f2d300a874d9114bcd1eaa404f7389d61c..a2137a7c30379d92e4419d8f81da3d79d6c2e34e 100644 (file)
@@ -290,6 +290,20 @@ class passwordMethod
   {
     return($this);
   }
+
+
+  static function is_harmless($password)
+  {
+      global $config;
+
+      if ($config->get_cfg_value("strictPasswordRules", "true") == "true") {
+          // Do we have UTF8 characters in the password?
+          return ($password == utf8_decode($password));
+      }
+
+      return(true);
+  }
+
 }
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>