name); $changed = ""; if ($fixed_name != $account->name) { $changed = " -> $fixed_name"; $edit = array('name' => $fixed_name); user_save($account, $edit); } print "found user " . $account->name . "$changed: "; if (!$account->pass) { $account->pass = user_password(); } $edit = array('mail' => $account->mail, 'pass' => $account->pass); if (zalternc_auth_update_user('insert', $edit, $account)) { $msg = drupal_get_messages(); print "ok: " . join(', ', $msg['status']); } else { print "nope"; } print "\n"; }