Add a Password never expires field for users to skip password expiration

Created on 2 February 2023, almost 2 years ago
Updated 7 April 2024, 7 months ago

Problem/Motivation

We need a new functionality: to be able to set some users to have their password never expire.
This way we can specify per user whether we want their password to expire or not.

Proposed resolution

We have created a new boolean field for the user entity: Password never expires.
If it's checked for a user, their password will never expire.
By default it is unchecked.

✨ Feature request
Status

Postponed: needs info

Version

3.0

Component

Code

Created by

πŸ‡·πŸ‡΄Romania Kosa Ilma

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Kosa Ilma
  • πŸ‡·πŸ‡΄Romania Kosa Ilma

    I created a patch for it.

  • Status changed to Needs review almost 2 years ago
  • πŸ‡·πŸ‡΄Romania Kosa Ilma

    I added uuid for field config files because, on an existing site with the already enabled module, the config import wants to overwrite (delete/create the field) the configs.

  • πŸ‡·πŸ‡΄Romania Kosa Ilma

    Set version to 8.x-3.x-dev.
    Also tested on 4.x but there is no 4.x-dev branch.

  • Status changed to RTBC over 1 year ago
  • πŸ‡§πŸ‡ΎBelarus pavel.bulat

    Thanks for the patch. It works for me.

  • Status changed to Needs review over 1 year ago
  • πŸ‡¨πŸ‡΄Colombia s_castro

    This is exactly the feature I was looking for. Thank you Kosa Ilma for the patch.
    Unfortunately, the patch did not work for my site (I'm using Password Policy 4.0.0 and Drupal 10.0.4) because the function drupal_get_path() was removed from D10. I change the function for the corresponding service to be compatible with D10.

  • πŸ‡¨πŸ‡΄Colombia s_castro

    I also thought it could be nice if we have bulk actions to check/uncheck this field directly from the "People" view.

  • Open on Drupal.org β†’
    Core: 10.0.7 + Environment: PHP 7.4 & MySQL 5.7
    last update about 1 year ago
    Waiting for branch to pass
  • Hello everyone, I am currently using the Password Policy module version 4.0.0. By default, there is a field named "Password Expiration" on each user edit page, and this field is checked, meaning that passwords will expire for these users. Therefore, I believe there's no need to add a "Password never expires" field. Instead, I have implemented bulk actions to allow for the direct checking or unchecking of this field from the "People" view.

  • Open on Drupal.org β†’
    Core: 10.0.7 + Environment: PHP 7.4 & MySQL 5.7
    last update about 1 year ago
    Waiting for branch to pass
  • Hello everyone, I am currently using the Password Policy module version 4.0.0. By default, there is a field named "Password Expiration" on each user edit page, and this field is checked, meaning that passwords will expire for these users. Therefore, I believe there's no need to add a "Password never expires" field. Instead, I have implemented bulk actions to allow for the direct checking or unchecking of this field from the "People" view.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.0.7 + Environment: PHP 8.1 & MySQL 5.7
    last update about 1 year ago
    Patch Failed to Apply
  • Status changed to Postponed: needs info 7 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-dev.

    If it is, please reopen and change the version, make sure the issue summary is clear and complete, including steps to reproduce and UI screenshots, 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.

Production build 0.71.5 2024