Closed (fixed)
Project:
Password Policy
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2012 at 12:31 UTC
Updated:
15 May 2012 at 14:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
jim kirkpatrick commentedI've created a simple patch that hides the empty/zero based constraints as they're added for translation and much shortens the list of things users must read or care about.
Works for me but should be double-checked as it might hide other stuff I'm not aware of.
Comment #2
erikwebb commentedIn the case of these settings, is the value empty or 0? I always want to avoid general
if ($value)statements.Comment #3
jim kirkpatrick commentedEither... No answer (empty on admin screen) or zero should both be ignored, hence the general
ifstatement...If we only want to ignore 0-based values, then the admin screen variables and creation of a password policy should default those fields to 0 too, rather than empty as now... But that's a separate issue with another patch altogether.
Comment #4
erikwebb commentedI've never actually seen these extra messages show up. Can you provide your policy settings? Use
SELECT * FROM password_policy\G.Comment #5
jim kirkpatrick commentedAs requested, a bit of a mysql dump file for our
password_policy:Hope that helps...
Comment #6
erikwebb commentedAre there any cases where you would _want_ to set a zero value?
Comment #7
jim kirkpatrick commentedI personally doubt it as the whole point of the module is to move from the Drupal default of '0 requirements for characters' to something with a specific value to enforce...
Comment #8
jim kirkpatrick commentedI see there's a "Show restrictions on password change page" checkbox in the Visibility settings section of the admin/config/people/password_policy page which might be the reason you've never seen them. I've updated the issue text.
Comment #9
erikwebb commentedI changed it a bit to be cleaner to read. Committed nonetheless. Thanks!
http://drupalcode.org/project/password_policy.git/commit/9dcf3cb
Comment #10.0
(not verified) commentedadded information that Show restrictions on password change page. must be checked.