In the 7.x-1.x version, there is a delay constraint, which allows you to prevent changing the password if it was changed within a window of time (say, if it changed in the last 24 hours).

I'd like to see this feature in the 7.x-2.x version. Patch forthcoming.

Comments

joelstein’s picture

Status: Active » Needs review
StatusFileSize
new2.59 KB

Here you go!

erikwebb’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

All new constraints should come with tests. Can you add those?

joelstein’s picture

Status: Needs work » Needs review
StatusFileSize
new3.52 KB

Here you go!

joelstein’s picture

Looks like the test passed. Can we push this through?

joelstein’s picture

Any chance this can be committed?

erikwebb’s picture

@joelstein: If we can get a second affirmative for a RTBC, then I'll be happy to commit it.

mikeendale’s picture

+1, #3 appears to be working.

erikwebb’s picture

Status: Needs review » Fixed

@dotmike - I'll assume that's a vote for RTBC.

Thanks @joelstein, committed!

http://drupalcode.org/project/password_policy.git/commit/fbf090a

joelstein’s picture

Thanks!

Status: Fixed » Closed (fixed)

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