Password policy bypass for admin not working

Created on 14 June 2024, 15 days ago

Problem/Motivation

As an administrator one can bypass the password policy when creating a new user. However, when saving the user with a password not matching the current policy, an error is thrown:

Drupal\Core\Entity\EntityStorageException: The password must satisfy the following password policy rules:<div class="item-list"><ul><li class="password-policy-invalid-rule marker">Must be at least 8 characters long.</li><li class="password-policy-valid-rule">Must contain at least 1 lowercase character.</li><li class="password-policy-invalid-rule marker">Must contain at least 1 uppercase character.</li><li class="password-policy-invalid-rule marker">Must contain at least 1 special character.</li><li class="password-policy-invalid-rule marker">Must contain at least 1 numeric character.</li></ul></div> in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 817 of /mnt/cephfs/sites/d/dealerhenkel/henkelman-portal/releases/77/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Steps to reproduce

  • Install module and enable a policy
  • Create a new user (logged in as admin), using a password nรณt matching the policy

Proposed resolution

Make sure the bypass works

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

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

Comments & Activities

Production build 0.69.0 2024