Closed (outdated)
Project:
Mass Password Reset
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jul 2016 at 15:25 UTC
Updated:
31 Oct 2026 at 20:01 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
damienmckennaThanks for reporting the bug.
BTW please note that the "Assigned" field is for when you are specifically working on an issue, if you're not then you should just leave it as "unassigned".
Comment #3
damienmckennaThis patch skips the current user and adds a note to hook_help() explaining the limitation.
Comment #4
damienmckennaComment #5
damienmckennaMinor fix ($account was used instead of $user).
Comment #6
larynI used a variation of the patch in #5 in the Backdrop version. I think it will need a few minor tweaks to work here -- see if this looks right (attached and changes summarized below).
if ($user->uid > 0 && $i == $user->uid) {I think this should be:
if ($user->uid > 0 && $data['uids'][$i] == $user->uid) {Also, there were a few spots like this:
t('Skipped logged in user %user', array('%mail' => $user->name));I've changed them to match up better:
t('Skipped logged in user %name', array('%name' => $user->name));Comment #7
mikebarkas commentedClosing as outdated: the 7.x-1.x and 8.x-1.x branches are end-of-life and no longer supported.
In 2.x, the current user and uid 1 are excluded from the reset.
If you can reproduce this on 2.x, please reopen with steps and set the version to 2.x-dev.