Password policy validates even when password unchanged

Created on 11 November 2020, over 4 years ago
Updated 27 May 2024, 12 months ago

Problem/Motivation

This is similar to https://www.drupal.org/project/password_policy/issues/2971079 but that only applies to the standard Drupal user edit form. We are using additional form modes for users and displaying the password field on some of these, and therefore running into the initial problem because the form_id is different.

Proposed resolution

I've updated the patch to allow a simple toggle on the form (set via a form alter etc) to indicate that the validation should be skipped if the password is empty.

Remaining tasks

Needs review.

📌 Task
Status

Needs review

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom kimberleycgm

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.

  • 🇧🇷Brazil dungahk Balneário Camboriú

    Attaching a patch for version 4.0.0

  • Status changed to Postponed: needs info about 1 year ago
  • 🇺🇸United States Kristen Pol Santa Cruz, CA, USA

    Read #8 please. We close this or update the summary.

  • Status changed to Needs review 12 months ago
  • Open on Drupal.org →
    Core: 10.2.1 + Environment: PHP 7.4 & MySQL 5.7
    last update 12 months ago
    Waiting for branch to pass
  • 🇧🇷Brazil dungahk Balneário Camboriú

    I don't understand how this issue got to this state, this might sound rude but it looks like no one who left a comment read the issue summary as it clearly states that, yes, there is/was another issue proposing a similar solution and points out the limitation with that solution and adds new functionality on top of that.

    What is in the dev branch is not the same thing that this issue is proposing.

    The patch I uploaded on #9 is up to date with 4.0.x.

    I hope everything is clear now so hoping for feedback on the changes the patch is proposing.

Production build 0.71.5 2024