Commits

Zhang Huangbin committed be3d3e8

Roundcube: Require the new password to contain a letter and punctuation character.

Comments (0)

Files changed (1)

iRedMail/functions/roundcubemail.sh

     cd ${RCM_HTTPD_ROOT}/plugins/password/ && \
     cp config.inc.php.dist config.inc.php
 
+    # Determine whether current password is required to change password
     perl -pi -e 's#(.*password_confirm_current.*=).*#${1} true;#' config.inc.php
+
+    # Require the new password to be a certain length
     perl -pi -e 's#(.*password_minimum_length.*=).*#${1} 8;#' config.inc.php
-    perl -pi -e 's#(.*password_require_nonalpha.*=).*#${1} false;#' config.inc.php
+
+    # Require the new password to contain a letter and punctuation character
+    perl -pi -e 's#(.*password_require_nonalpha.*=).*#${1} true;#' config.inc.php
 
     if [ X"${BACKEND}" == X"MySQL" ]; then
         perl -pi -e 's#(.*password_driver.*=).*#${1} "sql";#' config.inc.php
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.