Created
July 6, 2015 13:10
-
-
Save pcornier/fd7001599d496aa4cb44 to your computer and use it in GitHub Desktop.
generate Drupal users reset links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$uids = db_select('users', 'u')->fields('u', array('uid'))->execute()->fetchAllAssoc('uid'); | |
foreach (array_keys($uids) as $uid) { | |
$u = user_load($uid); | |
print $u->name . ';' . user_pass_reset_url($u) . "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment