0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

Merge branch 'postfixadmin_3.3'

This commit is contained in:
David Goodwin 2021-01-27 22:02:29 +00:00
commit 9da4431bef
2 changed files with 4 additions and 11 deletions

View File

@ -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)

View File

@ -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