Closed (fixed)
Project:
Password Policy
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
6 Jul 2011 at 19:26 UTC
Updated:
3 Jan 2012 at 18:30 UTC
Jump to comment: Most recent file
Selecting a role at /admin/config/people/password_policy/password_change and submitting the form does not force users to change their password.
This bug has to do with $db_uids = db_query('SELECT uid FROM {users_roles} WHERE rid = :rid', array('rid' => $role))->fetchCol(); and the following foreach loop returning a int value instead of an object.
Patch to follow.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1211080-force-users-change-password-2.patch | 2.98 KB | erikwebb |
| #1 | force-users-to-change-password-1211080-1.patch | 1.2 KB | mukhsim |
Comments
Comment #1
mukhsim commentedPatch attached.
Comment #2
erikwebb commentedThe original code looks like it may have problems. I needed to add (or remove from both)
->fetchCol()from both nearbydb_query()calls. Looks much simplified using your example and works fine for me. Please confirm.Comment #3
deekayen commentedcommitted