Update Password Strength module for PHP8 and latest versions of zxcvbn library

Created on 15 February 2022, almost 3 years ago
Updated 11 October 2023, about 1 year ago

Problem/Motivation

Password Strength module is not updated with PHP8.

Steps to reproduce

While trying to create a new user, getting "The website encountered an unexpected error. Please try again later." error. and while checking the logs, we could see as
ParseError: syntax error, unexpected token "match" in Composer\Autoload\includeFile() (line 5 of /mnt/www/html/nvsproductdev/vendor/bjeavons/zxcvbn-php/src/Matchers/DictionaryMatch.php) #0 /mnt/www/html/nvsproductdev/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile('/mnt/www/html/n...') #1 /mnt/www/html/nvsproductdev/docroot/modules/contrib/password_strength/src/Matcher.php(23): Composer\Autoload\ClassLoader->loadClass('ZxcvbnPhp\\Match...') #2 /mnt/www/html/nvsproductdev/docroot/modules/contrib/password_strength/src/PasswordStrength.php(53): Drupal\password_strength\Matcher->getMatches('ruB?^tCN;`qQ

Proposed resolution

bjeavons/zxcvbn-php: 0.4.0 is not compatible with php8. The composer.json has to be updated with ^1.0 as defined in https://github.com/bjeavons/zxcvbn-php README.MD file

Drupal php requirement: Use PHP version 8.0 or higher for current release versions of Drupal 9. Drupal 10 will require PHP 8.0.2.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India bala_28 Chennai

Live updates comments and jobs are added and updated live.
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