Once the "Force Password Change" checkbox has been checked for a user, by an administrator, it cannot be unchecked.

Comments

pcher1bw’s picture

Is there a work around for this, I have the problem as well.

aohrvetpv’s picture

Version: 6.x-1.6 » 7.x-1.x-dev

Not being able to undo a forced password change might be by design and not a bug. Once the user changes their password, the checkbox becomes unset.

Even if by design:
- It would seem to be a bug that the checkbox is not disabled and can be unchecked without effect.
- It probably ought to be possible to undo a forced password change.

Also occurs in 7.x-1.x-dev, so increasing version.

aohrvetpv’s picture

Is there a work around for this, I have the problem as well.

Change force_change to 0 in database table password_policy_force_change for the uid(s).

aohrvetpv’s picture

Status: Active » Needs review
StatusFileSize
new745 bytes

Looks like it is indeed a bug. The case that "Force password change" is changed from checked to unchecked via the user-edit page seems to be unhandled in hook_user_update().

aohrvetpv’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
StatusFileSize
new713 bytes

Here is a backported patch for D6. Please try it out if you can. Seems to work.

aohrvetpv’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
deekayen’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Needs review » Patch (to be ported)
aohrvetpv’s picture

Commits for 7.x-1.x and 6.x-1.x, respectively:
http://drupalcode.org/project/password_policy.git/commit/e2a9279
http://drupalcode.org/project/password_policy.git/commit/bcfba4f

I am guessing they didn't generate an automated message here because the commit message format was not precisely as expected. (It used a pipe character instead of a comma.)

aohrvetpv’s picture

Status: Patch (to be ported) » Fixed

'Force password change at next login' feature not currently in 7.x-2.x, so this bug should be fixed.

aohrvetpv’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
deekayen’s picture

Re: #8: I just copy/paste whatever Dreditor provides for me. https://dreditor.org/

aohrvetpv’s picture

Ah, so maybe Dreditor needs to change to use Drupal.org's expected format, or Drupal.org should add support for Dreditor's.

It is not really a problem, just is nice to have the commit automatically linked so you can quickly review the committed fix. Thanks for the commits.

Status: Fixed » Closed (fixed)

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