Problem/Motivation

We need to integrate PRLP with the Password Policy module for some of our web sites.

There is sadly no standard and easy way to do that at the moment.

Proposed resolution

We propose to add two events (replacement for hooks) to allow other modules to take actions on password validation and before password save.

Once added, those two events will facilitate the integration of PRLP with Password Policy using the new Password Policy Extras module we developed. This module allows integration of Password Policy with PRLP and also the User Registration Password module.

You can check the related Password Policy PRLP integration EventSubscriber class which already uses the two new events we want to add to PRLP.

Remaining tasks

Validate MR.

User interface changes

None.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#6 prlp-3447787-MR15-6.patch7.59 KBmably

Issue fork prlp-3447787

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mably created an issue. See original summary.

mably’s picture

Status: Active » Needs review
Related issues: +#3182013: Integration with Password policy module
mably’s picture

Issue summary: View changes
mably’s picture

Title: Create two events (ex hooks) allowing better integration with other modules » Create two events (ex hooks) to facilitate integration with other modules
mably’s picture

StatusFileSize
new7.59 KB

leymannx made their first commit to this issue’s fork.

  • leymannx committed 797cd2da on 8.x-1.x authored by mably
    Issue #3447787: Create two events (ex hooks) to facilitate integration...
norman.lol’s picture

Assigned: mably » Unassigned
Status: Needs review » Fixed

I really like the straightforward, clean and readable implementation and the already in-place solution to pick these events up in the password_policy_extras module, thus merging and tagging it. Looking forward for a release of the password_policy_extras module to be able to test it more easily.

mably’s picture

Thanks @leymannx for the merge!

Will make a password_policy_extras release as soon as possible.

EDIT: 4.0.0-alpha1 version released.

  • leymannx committed 8097e80f on 8.x-1.x
    #3447787 Trailing comma in parameters list is only available since PHP 8...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.