The Authenticated user role doesn't reset any accounts. It should reset all users, but doesn't. Looks like @chim had covered this in his patches for #1903204: role specific resets. That may be a good place to look.
Anyway, currently, since the a role has to be selected, mass_pwreset will fail if there are only admin and authenticated user roles. Regular users who are not admin will not get passwords reset.
@bmeme noted this issue here: #2154539-4: Role specific reset and batching
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | authenticated-user-role-2191935-2.patch | 1.1 KB | mthomas |
Comments
Comment #1
shrop commentedComment #2
mthomas commentedThe attached patch fixes the issue for me. If the authenticated user rid is present, all users except uid 0 will be returned. Otherwise the old query is used.
Comment #3
charles belovSetting to needs review so it will go through the testbot and to call attention to it for testers.
For the issue itself, behind the scenes a repeated division-by-zero error was showing up many times in line 31 of mass_pwdreset.batch.inc:
$context['finished'] = $context['sandbox']['progress'] / $context['sandbox']['max'];
Comment #5
shrop commentedTested and confirmed patch works. Also, noticed the issue Charles Belov mentioend "Warning: Division by zero in mass_pwreset_batch_process() (line 31 of /var/www/html/sites/all/modules/contrib/mass_pwreset/mass_pwreset.batch.inc)."
Patched committed. Thank you all!