From ec31213715f17cad47d051582e1f73ea1feb85fe Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 26 Apr 2010 12:39:09 +0000 Subject: [PATCH] Added is_harmless git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17841 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../password-methods/class_password-methods.inc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gosa-core/include/password-methods/class_password-methods.inc b/gosa-core/include/password-methods/class_password-methods.inc index e1c348f2d..a2137a7c3 100644 --- a/gosa-core/include/password-methods/class_password-methods.inc +++ b/gosa-core/include/password-methods/class_password-methods.inc @@ -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: ?> -- 2.30.2