Closed (fixed)
Project:
Password Policy
Version:
7.x-1.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2014 at 18:35 UTC
Updated:
7 Sep 2014 at 16:40 UTC
Jump to comment: Most recent
Repeatable: Always
Steps to repeat:
Expected result:
Message saying the username field is required, without a warning.
Actual result:
Username field is required.
Warning: strpos(): Empty needle in password_policy_constraint_username_validate() (line 31 of /sites/all/modules/password_policy/constraints/constraint_username.inc).
OS: CentOS 6
Apache: 2.2.27
PHP: 5.4.27
Drupal: 7.31
| Comment | File | Size | Author |
|---|---|---|---|
| constraint_username.inc_.patch | 692 bytes | vincent.verbruggen |
Comments
Comment #1
aohrvetpv commentedThanks for the report and patch. I separated the check for empty username because I wanted to make it explicit why we are doing that. Please follow up if there is any problem with the adjusted patch.
Comment #3
aohrvetpv commentedLooks like neither 7.x-2.x nor 6.x-1.x have this bug.