bernd commited on 2007-08-13 13:14:03
Zeige 2 geänderte Dateien mit 5 Einfügungen und 0 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@622 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -10,6 +10,7 @@ $config['db_pass'] = 'password'; |
10 | 10 |
|
11 | 11 |
$config['modules'] = array("index", "domains", "imap", "mysql", "jabber", "vhosts", "register", "systemuser", "su"); |
12 | 12 |
|
13 |
+$config['use_cracklib'] = true; |
|
13 | 14 |
$config['cracklib_dict'] = 'inc/cracklib_dict'; |
14 | 15 |
|
15 | 16 |
$config['enable_debug'] = true; |
... | ... |
@@ -6,6 +6,10 @@ require_once('inc/error.php'); |
6 | 6 |
function strong_password($password) |
7 | 7 |
{ |
8 | 8 |
include("config.php"); |
9 |
+ if (isset($config['use_cracklib']) and $config['use_cracklib'] == false) { |
|
10 |
+ DEBUG('Cracklib deaktiviert'); |
|
11 |
+ return true; |
|
12 |
+ } |
|
9 | 13 |
DEBUG("Öffne Wörterbuch: {$config['cracklib_dict']}"); |
10 | 14 |
if (! ($dict = crack_opendict($config['cracklib_dict']))) |
11 | 15 |
{ |
12 | 16 |