Hi,

Sometimes I see duplicated messages when I visit a page before I changed my password. So it looks like this:

  • An administrator has required that you change your password. You must change your password to proceed on the site.
  • An administrator has required that you change your password. You must change your password to proceed on the site.

Please consider to modify the following line to avoid of it:

Line 29:
From:

		drupal_set_message(t('An administrator has required that you change your password. You must change your password to proceed on the site.'), 'error');

To:

		drupal_set_message(t('An administrator has required that you change your password. You must change your password to proceed on the site.'), 'error', FALSE);

Add the third parameter $repeat for drupal_set_message.

Reference:
http://api.drupal.org/api/function/drupal_set_message/6

CommentFileSizeAuthor
#1 force_password_change.patch721 bytesandyhu

Comments

andyhu’s picture

StatusFileSize
new721 bytes

Here is the patch file...

jaypan’s picture

Thank you! I am adding this change to the next version of the module, out in a few hours.

jaypan’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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