Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get a notice in the _password_policy_constraint_validate() function when $account->roles is not defined. Patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#1 | password_policy-roles_notice-1800280-1.patch | 623 bytes | bdlangton |
Comments
Comment #1
bdlangton CreditAttribution: bdlangton commentedHere is the patch.
Comment #2
erikwebb CreditAttribution: erikwebb commentedSimple enough patch, but when would
$account->roles
not be defined?Comment #3
bdlangton CreditAttribution: bdlangton commentedGood question. It actually may never happen in a standard Drupal install, it might just be something with my site that was causing the problem.
Comment #4
erikwebb CreditAttribution: erikwebb commentedhttp://drupalcode.org/project/password_policy.git/commit/1274c95