Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm not sure if this issue is related? https://www.drupal.org/node/2326265
Just noticed this problem when testing for other recent issues. This is a situation where the username constraint is enabled.
If I start typing a password before a username is entered, I receive the constraint error "Password must not contain their username." Even though I've entered a valid password, the error message remains.
Either the message should not be displayed (since the username field is empty), or the message should state something like "Username field is empty, enter a name to complete password check."
Comments
Comment #1
AohRveTPV CreditAttribution: AohRveTPV commentedThis applied after #2478199-20: Notice: Undefined property: stdClass::$name in password_policy_drupal_strength_constraint may fix. It changes the constraint to be met when no username exists.
Comment #2
AohRveTPV CreditAttribution: AohRveTPV commented#1 may not be technically correct because a Drupal username can be "0", I think. (Drupal would not allow that username via the web interface, but it might by other means.)
Comment #3
ron_s CreditAttribution: ron_s commentedYes, I think #2 is the right approach. So add the patch from #2 as an addition to what I posted on #20 in 2478199?
Comment #5
AohRveTPV CreditAttribution: AohRveTPV commented