Closed (fixed)
Project:
Password Policy
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2013 at 23:25 UTC
Updated:
12 Mar 2013 at 14:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
mrfelton commentedComment #2
erikwebb commentedThis creates the possible case that no message would be shown at all. Being somewhat newer to CTools APIs, when would the message ever be empty? I'd like to always make sure it's at least showing the default message.
Comment #3
mrfelton commentedI have a use case for having the message empty. We are using the new 'force first' plugin in order to force users of certain roles to change their password the first time they log in. Our intent is to do this by redirecting them to a page where we show only the password form, and within the content of the page there will be a description/help text asking them to set their password. In this case, there is no need to show a warning message as that information is conveyed in the page. Currently, we dont have that aspect working as we still need to build that password change only page, but once that is working, there will be no need for a warning message at all. The patch I submitted still has the default message, but also allows the user to override this, including setting it to be blank. This kind of flexibility is important, as we can't predict everyones use cases for expiring passwords.
Comment #4
erikwebb commentedYou're right. I've altered the patch a little bit to bold the case if the message is empty, just to alert people to that special case.
http://drupalcode.org/project/password_policy.git/commit/220a148
Please consider helping out with the Password tab module now that there is some code in the repo.