Apply policy globally through validation constraint on user entity

Created on 11 February 2022, over 2 years ago
Updated 18 April 2024, 5 months ago

Problem/Motivation

Password policies depend on the form that is being submitted. It would be interesting to apply the policies globally, regardless of which form is being used.

Proposed resolution

Create a validation constraint that applies to the 'pass' field of the 'user' entity. Allowing the appropriate password policies to apply on every user creation.

API changes

The module would apply the constraint to the 'user' entity through hook_entity_base_field_info_alter()

This could be an alternative to issue #2562481 β†’

✨ Feature request
Status

Needs review

Version

4.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland corwino

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.

  • πŸ‡―πŸ‡΄Jordan Anas_maw

    +1 for #7

  • Issue was unassigned.
  • Status changed to Postponed: needs info 6 months ago
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Thanks to everyone for the work on this issue.

    I'm going through all the 8.x issues.

    As the 8.x is no longer supported, I'm postponing this issue for now and need feedback as to whether or not this issue is relevant to 4.0.x.

    If it is, please reopen and change the version, make sure the issue summary is clear and complete, including steps to reproduce, and reroll the patch. If it's not, please close.

    If there is no response to this in a month addressing the above, it can be closed.

  • πŸ‡¨πŸ‡­Switzerland aerzas
  • Status changed to Needs review 5 months ago
  • πŸ‡¨πŸ‡­Switzerland aerzas

    The feature request is still relevant in 4.0.x.

Production build 0.71.5 2024