Warn against repeating character classes in passwords

Created on 28 November 2008, almost 16 years ago
Updated 29 September 2024, about 2 months ago

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.

The attached patch is for the latest 7.x release of Drupal, but a similar approach could be applied to the 6.x branch.

Feature request
Status

Closed: works as designed

Version

11.0 🔥

Component

user.module

Created by

🇨🇦Canada Brad Beattie

Live updates comments and jobs are added and updated live.
  • Security

    It is used for security vulnerabilities which do not need a security advisory. For example, security issues in projects which do not have security advisory coverage, or forward-porting a change already disclosed in a security advisory. See Drupal’s security advisory policy for details. Be careful publicly disclosing security vulnerabilities! Use the “Report a security vulnerability” link in the project page’s sidebar. See how to report a security issue for details.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024