Hey,

It seems there is still a password_policy_user hook lying round for the ops "register" and "form". Since this hook is no longer used in drupal 7 the checkbox on a user page to force them to change passwords next time they log in isn't there.

I will investigate a replacement hook for this and possibly post a patch for it.

Cheers,
Adam

CommentFileSizeAuthor
#1 1252666-password-policy-fix.patch2.12 KBacbramley

Comments

acbramley’s picture

StatusFileSize
new2.12 KB

This patch fixes this by putting the settings in a form alter hook with user_access checks. Needs testing and review.

erikwebb’s picture

Title: Using of hook_user for force password change on user page. » hook_user uses outdated D6 ops - move 'register' and 'form' ops to form_alter's
Status: Active » Needs review

Looks good to me. Can I get a RTBC?

erikwebb’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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