- Issue created by @lukelathouwers
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).
Make sure the bypass works
Active
1.0
Code