diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index a45aebfa..be9f537f 100644 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -6,12 +6,12 @@ # # Further details on the project are available at https://github.com/postfixadmin/postfixadmin -Version 3.3.5 - 2021/01/26 +Version 3.3.5 - 2021/01/27 ------------------------------------------------- - Fix include path for password-change.php and improve UI for password-recover / password-change (nav bar was missing, remove table layout, fix labels not visible) (see https://github.com/postfixadmin/postfixadmin/issues/430 - Fix users/edit-alias to remove unnecessary space (see https://github.com/postfixadmin/postfixadmin/issues/442) - Improve documentation - - Improve password length check in config.inc.php (see //github.com/postfixadmin/postfixadmin/issues/423) + - Improve password length check example in config.inc.php (see //github.com/postfixadmin/postfixadmin/issues/423) - Improve ADDITIONS/update_quota.pl (update to use quota2 table) - Check for some config setting, and do not error if they are not set (see https://github.com/postfixadmin/postfixadmin/issues/437) - Add pt-pt (portugese) translation (thanks Numo Carrilho/Nunix) diff --git a/config.inc.php b/config.inc.php index b08e8571..1b0bb321 100644 --- a/config.inc.php +++ b/config.inc.php @@ -227,18 +227,11 @@ if(@file_exists('/usr/bin/doveadm')) { // @ to silence openbase_dir stuff; see h $CONF['password_validation'] = array( # '/regular expression/' => '$PALANG key (optional: + parameter)', '/.{5}/' => 'password_too_short 5', # minimum length 5 characters - // '/([a-zA-Z].*){3}/' => 'password_no_characters 3', # must contain at least 3 consecutive characters + '/([a-zA-Z].*){3}/' => 'password_no_characters 3', # must contain at least 3 characters '/([0-9].*){2}/' => 'password_no_digits 2', # must contain at least 2 digits /* support a 'callable' value which if it returns a non-empty string will be assumed to have failed, non-empty string should be a PALANG key */ - 'length_check' => function($password) { if (strlen(trim($password)) < 3) { return 'password_too_short'; } }, // not unicode safe. - - /** - * 'any-key' => function($password) { - * if ( rand(0, 5) == 0 ) { return 'password_too_short'; } - * // add some remote api check here ... or whatever - * }, - */ + // 'length_check' => function($password) { if (strlen(trim($password)) < 3) { return 'password_too_short'; } }, ); // Generate Password