Magento: change the required / minimum password length

--- ./js/prototype/validation.js.org	2011-03-28 15:40:04.000000000 +0200
+++ ./js/prototype/validation.js	2011-03-28 15:39:46.000000000 +0200
@@ -456,7 +456,7 @@
                     }],
     ['validate-password', 'Please enter 6 or more characters. Leading or trailing spaces will be ignored.', function(v) {
                 var pass=v.strip(); /*strip leading and trailing spaces*/
-                return !(pass.length>0 && pass.length < 6);
+                return !(pass.length>0 && pass.length < 4);
             }],
     ['validate-admin-password', 'Please enter 7 or more characters. Password should contain both numeric and alphabetic characters.', function(v) {
                 var pass=v.strip();
1

Links
http://www.magentocommerce.com/boards/201210/viewthread/18197/#t62474

Comments

Why?

Why would you want to allow shorter passwords? Six is already pretty short. Regardless, you should probably update the validation message as well.