You are here

function mass_pwreset_execute_reset in Mass Password Reset 7

Callback: Reset User password

1 call to mass_pwreset_execute_reset()
mass_pwreset_batch_process in ./mass_pwreset.batch.inc
Batch process callback

File

./mass_pwreset.batch.inc, line 52

Code

function mass_pwreset_execute_reset($user) {
  $new_pass = _mass_pwreset_generate_password(12, TRUE);
  user_save($user, array(
    'pass' => $new_pass,
  ));
  drupal_set_message(t('Users passwords reset.'), 'status');
}