Index: trunk/phase3/skins/common/password.js |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | /[-_;:\.,'"`~!@#$%\^&\*\(\)\[\]\{\} ]/ ]; |
23 | 23 | |
24 | 24 | var charClasses = 0; |
25 | | - for ( var i in regexes ) { |
| 25 | + for ( var i=0; i< regexes.length; i++ ) { |
26 | 26 | if ( pwd.match( regexes[i] ) ) { |
27 | 27 | charClasses++; |
28 | 28 | } |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | |
46 | 46 | function repetitionScore( pwd ) { |
47 | 47 | var unique = ''; |
48 | | - for ( var i in pwd ) { |
| 48 | + for ( var i=0; i< pwd.length; i++ ) { |
49 | 49 | if ( unique.indexOf( pwd[i] ) < 0 ) { |
50 | 50 | unique += pwd[i]; |
51 | 51 | } |