Process initial password policy settings via Drupal queue system

Created on 25 July 2017, over 7 years ago
Updated 7 April 2024, about 1 year ago

Problem/Motivation

As discussed in πŸ› "Field field_last_password_reset is unknown" while importing configuration on site without password_policy activated Fixed , it would be beneficial to move the initial processing of all user accounts into a queue in order to prevent memory time outs when there are large numbers of users needing to be updated. This issue doesn't appear when the password policy module is installed at the beginning of a site build, but if a site has thousands of users, the current process of adding the password policy setting onto each user at install is untenable.

Proposed resolution

Update the hook_install function to instead use Drupal's queue system to process necessary password updates.

Suggested alternate resolution #2983448: Refactor hook_install logic to expire passwords for existing users β†’

Remaining tasks

  1. Add password policy updates into queue system.
  2. Add drush command to speed the processing of queued password policy updates.
  3. Add queue clean up to hook_uninstall.
✨ Feature request
Status

Needs work

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States merauluka

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

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.

Production build 0.71.5 2024