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.

Comments

mukhsim’s picture

Patch attached.

erikwebb’s picture

Status: Active » Needs review
StatusFileSize
new2.98 KB

The original code looks like it may have problems. I needed to add (or remove from both) ->fetchCol() from both nearby db_query() calls. Looks much simplified using your example and works fine for me. Please confirm.

deekayen’s picture

Status: Needs review » Fixed

committed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.