Skip password validation when installing a site via CLI

Created on 21 April 2024, 12 months ago

Problem/Motivation

When installing a site with command line, using drush site:install --existing-config, Drupal will generate a random password for the admin user. Currently, this password gets validated by adequate_passwords and an error can be thrown, breaking site installation.

Steps to reproduce

1. Have a fresh Drupal installation with adequate_passwords module installed
2. Export the configuration
3. Reinstall the site using `drush site:install --existing-config`
4. Notice the error:

In install.core.inc line 969:

  Please choose a stronger password. Recommendations to make your password stronger:<ul><li>Make it at least 12 characters</li><li>Add punctuation</li></ul>

Proposed resolution

Skip validation on the site install form when using CLI PHP.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇷🇴Romania stefan.butura

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024