password_policy_update_7105() refers to the column name "constraints" which does not exist until the subsequent update function, password_policy_update_7106(), is run.
The result is PHP errors upon visiting pages with password change forms, and the user is unable to change their password.
Example error:
Warning: call_user_func() expects parameter 1 to be a valid callback, function 'password_policy_constraint_complexity_error' not found or invalid function name in _password_policy_constraint_error() (line 1201 of /var/www/html/drupal7/sites/all/modules/password_policy/password_policy.module).
This should not affect sites upgrading from 7.x-1.12 from 7.x-1.13. However, it will affect sites upgrading from earlier versions to 7.x-1.13.
This bug was introduced by #2647176: Rename 'policy' field to 'constraints'.
Comments
Comment #2
aohrvetpv commentedSteps to reproduce:
1. Install 7.x-1.11.
2. Enable a policy with the Complexity: 2.
3. Upgrade to 7.x-1.13.
4. Browse to user edit page.
Comment #3
aohrvetpv commentedTested that this fix works with three possible upgrade paths:
1. 11 -> 12 -> 13 -> 14
2. 11 -> 13 -> 14
3. 11 -> 14
I think we need to release a 7.x-1.14 as soon as possible with this fix (unfortunately). Otherwise, sites may upgrade and their users will not be able to set/change passwords.
Comment #4
aohrvetpv commentedSeems like it'd be cleaner to just delete 7105.
Tested the three upgrade paths again, no problems.
Comment #5
aohrvetpv commentedComment #7
aohrvetpv commentedWill plan to release 7.x-1.14 in an hour or so with this fix.
Comment #8
aohrvetpv commented