Browse code

detect if cracklib is installed

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1518 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on23/11/2009 16:48:15
Showing1 changed files
... ...
@@ -5,6 +5,11 @@ require_once('inc/error.php');
5 5
 
6 6
 function strong_password($password)
7 7
 {
8
+  if (! function_exists("crack_opendict"))
9
+  {
10
+    DEBUG("cracklib not available!");
11
+    return true;
12
+  }
8 13
   if (config('use_cracklib') === NULL or config('use_cracklib') === false) {
9 14
     DEBUG('Cracklib deaktiviert');
10 15
     return true;