Closed (won't fix)
Project:
Password Policy
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2015 at 17:43 UTC
Updated:
15 Mar 2017 at 14:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aohrvetpv commentedTest to reproduce the bug. Requires first applying the patch in #2467941: Mock time retrievals for testing, which allows the test to control time.
Comment #2
aohrvetpv commentedUpdated test to reproduce the bug. No longer requires applying a second patch as did previous patch.
Comment #3
aohrvetpv commentedFixed bug.
The problem was the existing code expected "unblocked" to be null for a user who had been blocked due to password expiration. But when a user was blocked after being unblocked, "unblocked" is not null; it is the time the user was unblocked. So we add a condition that detects when a user has been reblocked after being unblocked.
Also expanded test to actually attempt logins.
Comment #5
aohrvetpv commentedUpdated to apply on latest code.
Comment #7
aohrvetpv commentedAttempted to fix previous patch.
Comment #9
aohrvetpv commentedComment #10
aohrvetpv commentedComment #11
aohrvetpv commented6.x-1.x is no longer supported.