Attached you'll find a patch to user.module's user.js. It enhances the Drupal.evaluatePasswordStrength function by allowing it to check for repeating classes of characters.

http://www-128.ibm.com/developerworks/lotus/library/ls-password_quality/

This link suggests against repeating characters. I can't quite think of an efficient way of doing this in JavaScript, but we can check for classes (e.g. "abc", "123", "asdf") and increment the weaknesses variable accordingly.

A similar patch has been submitted for the 7.x branch at http://drupal.org/node/340043

Comments

Brad Beattie’s picture

StatusFileSize
new1.73 KB

Uploading CVS diff as per http://drupal.org/patch/create

Brad Beattie’s picture

StatusFileSize
new808 bytes
dries’s picture

Status: Needs review » Needs work

Please add code comments to explain (i) how the code works and (ii) why this is important. Thanks.

Brad Beattie’s picture

Status: Needs work » Needs review
dpearcefl’s picture

At this point, no new features will be added to D6 (or D7). If you think Drupal 8 needs this feature, please assign this issue to D8.

Anonymous’s picture

Status: Needs review » Closed (won't fix)