From: cajus Date: Mon, 26 Apr 2010 12:39:09 +0000 (+0000) Subject: Added is_harmless X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ec31213715f17cad47d051582e1f73ea1feb85fe;p=gosa.git Added is_harmless git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17841 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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: ?>