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.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | prlp-3447787-MR15-6.patch | 7.59 KB | mably |
Issue fork prlp-3447787
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
Comment #3
mably commentedComment #4
mably commentedComment #5
mably commentedComment #6
mably commentedComment #9
norman.lolI 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.
Comment #10
mably commentedThanks @leymannx for the merge!
Will make a password_policy_extras release as soon as possible.
EDIT: 4.0.0-alpha1 version released.